homelab/roles/monica/templates/compose.yml.j2

81 lines
2.2 KiB
Plaintext
Raw Normal View History

version: '3'
services:
app:
image: 'monica:3.7.0-apache'
restart: 'always'
environment:
- "APP_ENV=production"
- "APP_DEBUG=false"
- "APP_KEY={{ monica_app_key }}"
- "HASH_SALT={{ monica_hash_salt }}"
- "HASH_LENGTH=18"
- "APP_URL=https://prm.roosens.me"
- "APP_FORCE_URL=false"
- "DB_CONNECTION=mysql"
- "DB_HOST=db"
- "DB_PORT=3306"
- "DB_DATABASE=monica"
- "DB_USERNAME=monica"
- "DB_PASSWORD=monica"
- "DB_PREFIX="
- "DB_TEST_HOST=127.0.0.1"
- "DB_TEST_DATABASE=monica_test"
- "DB_TEST_USERNAME=homestead"
- "DB_TEST_PASSWORD=secret"
- "DB_USE_UTF8MB4=true"
- "MAIL_MAILER=smtp"
- "MAIL_HOST=mailtrap.io"
- "MAIL_PORT=2525"
- "MAIL_USERNAME="
- "MAIL_PASSWORD="
- "MAIL_ENCRYPTION="
- "MAIL_FROM_ADDRESS="
- "MAIL_FROM_NAME=Monica instance"
- "APP_EMAIL_NEW_USERS_NOTIFICATION="
- "APP_DISABLE_SIGNUP=true"
- "APP_SIGNUP_DOUBLE_OPTIN=false"
- "APP_TRUSTED_PROXIES=*"
- "APP_TRUSTED_CLOUDFLARE=false"
- "LOG_CHANNEL=daily"
- "SENTRY_SUPPORT=false"
- "SENTRY_LARAVEL_DSN="
- "CHECK_VERSION=true"
- "SESSION_LIFETIME=120"
- "QUEUE_CONNECTION=sync"
- "DEFAULT_MAX_UPLOAD_SIZE=10240"
- "DEFAULT_MAX_STORAGE_SIZE=51200"
- "DEFAULT_FILESYSTEM=public"
- "AWS_KEY="
- "AWS_SECRET="
- "AWS_REGION=us-east-1"
- "AWS_BUCKET="
- "AWS_SERVER="
- "MFA_ENABLED=true"
- "DAV_ENABLED=true"
- "PASSPORT_PERSONAL_ACCESS_CLIENT_ID="
- "PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET="
- "ALLOW_STATISTICS_THROUGH_PUBLIC_API_ACCESS=false"
- "POLICY_COMPLIANT=true"
- "ENABLE_GEOLOCATION=false"
- "LOCATION_IQ_API_KEY="
- "ENABLE_WEATHER=false"
- "DARKSKY_API_KEY="
ports:
- 8001:80
volumes:
- '/mnt/data1/monica/monica:/var/www/html/storage'
db:
image: 'mariadb:10.7.1'
restart: 'always'
environment:
- 'MARIADB_ROOT_PASSWORD={{ monica_mariadb_root_pass }}'
- 'MARIADB_USER=monica'
- 'MARIADB_PASSWORD=monica'
- 'MARIADB_DATABASE=monica'
volumes:
- '/mnt/data1/monica/mariadb:/var/lib/mysql'