2023-04-05 19:08:03 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
movary:
|
2023-08-06 12:52:38 +00:00
|
|
|
image: leepeuker/movary:0.57.0
|
2023-04-05 19:08:03 +00:00
|
|
|
container_name: movary
|
|
|
|
environment:
|
|
|
|
- TMDB_API_KEY=${MOVARY_TMDB_API_KEY}
|
|
|
|
- TIMEZONE=${TZ}
|
|
|
|
- DATABASE_MODE=mysql
|
|
|
|
- DATABASE_MYSQL_HOST=movary-db
|
|
|
|
- DATABASE_MYSQL_NAME=movary
|
|
|
|
- DATABASE_MYSQL_USER=tipi
|
|
|
|
- DATABASE_MYSQL_PASSWORD=${MOVARY_MYSQL_PASSWORD}
|
|
|
|
- TMDB_ENABLE_IMAGE_CACHING=1
|
|
|
|
restart: unless-stopped
|
|
|
|
command: "php bin/console.php database:migration:migrate"
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/movary:/app/storage
|
|
|
|
ports:
|
|
|
|
- ${APP_PORT}:80
|
|
|
|
depends_on:
|
|
|
|
- movary-db
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
labels:
|
2023-06-12 19:58:59 +00:00
|
|
|
# Main
|
|
|
|
traefik.enable: true
|
|
|
|
traefik.http.middlewares.movary-web-redirect.redirectscheme.scheme: https
|
|
|
|
traefik.http.services.movary.loadbalancer.server.port: 80
|
|
|
|
# Web
|
|
|
|
traefik.http.routers.movary-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.movary-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.movary-insecure.service: movary
|
|
|
|
traefik.http.routers.movary-insecure.middlewares: movary-web-redirect
|
|
|
|
# Websecure
|
2023-04-05 19:08:03 +00:00
|
|
|
traefik.http.routers.movary.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.movary.entrypoints: websecure
|
|
|
|
traefik.http.routers.movary.service: movary
|
|
|
|
traefik.http.routers.movary.tls.certresolver: myresolver
|
2023-06-12 19:58:59 +00:00
|
|
|
# Local domain
|
|
|
|
traefik.http.routers.movary-local-insecure.rule: Host(`movary.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.movary-local-insecure.entrypoints: web
|
|
|
|
traefik.http.routers.movary-local-insecure.service: movary
|
|
|
|
traefik.http.routers.movary-local-insecure.middlewares: movary-web-redirect
|
|
|
|
# Local domain secure
|
|
|
|
traefik.http.routers.movary-local.rule: Host(`movary.${LOCAL_DOMAIN}`)
|
|
|
|
traefik.http.routers.movary-local.entrypoints: websecure
|
|
|
|
traefik.http.routers.movary-local.service: movary
|
|
|
|
traefik.http.routers.movary-local.tls: true
|
2023-04-05 19:08:03 +00:00
|
|
|
|
|
|
|
movary-db:
|
|
|
|
image: linuxserver/mariadb:latest
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: "movary"
|
|
|
|
MYSQL_USER: "tipi"
|
|
|
|
MYSQL_PASSWORD: ${MOVARY_MYSQL_PASSWORD}
|
|
|
|
MYSQL_ROOT_PASSWORD: ${MOVARY_MYSQL_PASSWORD}
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/mysql:/config
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|