app-store/apps/monica/docker-compose.yml

42 lines
1.1 KiB
YAML

version: "3.7"
services:
monica:
image: monica:4.0.0
container_name: monica
depends_on:
- monica-db
ports:
- ${APP_PORT}:80
environment:
- APP_KEY=${MONICA_APP_KEY}
- DB_HOST=monica-db
- DB_USERNAME=usermonica
- DB_PASSWORD=${MONICA_DB_PASS}
volumes:
- ${APP_DATA_DIR}/data:/var/www/html/storage
restart: unless-stopped
networks:
- tipi_main_network
labels:
traefik.enable: ${APP_EXPOSED}
traefik.http.routers.monica.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.monica.entrypoints: websecure
traefik.http.routers.monica.service: monica
traefik.http.routers.monica.tls.certresolver: myresolver
traefik.http.services.monica.loadbalancer.server.port: 80
monica-db:
image: mariadb:10.6.11
container_name: monica-db
environment:
- TZ=${TZ}
- MARIADB_RANDOM_ROOT_PASSWORD=true
- MARIADB_DATABASE=monica
- MARIADB_USER=usermonica
- MARIADB_PASSWORD=${MONICA_DB_PASS}
volumes:
- ${APP_DATA_DIR}/mysql:/var/lib/mysql
restart: unless-stopped
networks:
- tipi_main_network