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

71 lines
3.0 KiB
YAML
Raw Normal View History

2023-10-01 08:37:17 +00:00
version: '3'
services:
koillection:
image: koillection/koillection:1.4.11
container_name: koillection
restart: unless-stopped
ports:
- ${APP_PORT}:80
depends_on:
2023-10-30 09:05:25 +00:00
- koillection-db
2023-10-01 08:37:17 +00:00
volumes:
2023-10-30 08:45:36 +00:00
- ${APP_DATA_DIR}/data/uploads:/uploads
2023-10-01 08:37:17 +00:00
environment:
- APP_DEBUG=0
- APP_ENV=prod
2023-10-30 08:45:36 +00:00
- HTTPS_ENABLED={KOILLECTION_HTTPS_ENABLED}
2023-10-01 08:37:17 +00:00
- UPLOAD_MAX_FILESIZE=20M
- PHP_MEMORY_LIMIT=512M
- PHP_TZ=${TZ}
2023-10-30 08:45:36 +00:00
- CORS_ALLOW_ORIGIN=*
2023-10-01 08:37:17 +00:00
- JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
- JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
2023-10-01 09:10:37 +00:00
- DB_DRIVER=pdo_pgsql
- DB_NAME=koillection
2023-10-30 09:11:14 +00:00
- DB_HOST=koillection-db
2023-10-01 09:10:37 +00:00
- DB_PORT=5432
2023-10-30 08:45:36 +00:00
- DB_USER={KOILLECTION_DB_USER}
- DB_PASSWORD={KOILLECTION_DB_PASSWORD}
2023-10-01 09:10:37 +00:00
- DB_VERSION=15
2023-10-01 08:37:17 +00:00
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.koillection-web-redirect.redirectscheme.scheme: https
traefik.http.services.koillection.loadbalancer.server.port: 8080
# Web
traefik.http.routers.koillection-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.koillection-insecure.entrypoints: web
traefik.http.routers.koillection-insecure.service: koillection
traefik.http.routers.koillection-insecure.middlewares: koillection-web-redirect
# Websecure
traefik.http.routers.koillection.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.koillection.entrypoints: websecure
traefik.http.routers.koillection.service: koillection
traefik.http.routers.koillection.tls.certresolver: myresolver
# Local domain
traefik.http.routers.koillection-local-insecure.rule: Host(`koillection.${LOCAL_DOMAIN}`)
traefik.http.routers.koillection-local-insecure.entrypoints: web
traefik.http.routers.koillection-local-insecure.service: koillection
traefik.http.routers.koillection-local-insecure.middlewares: koillection-web-redirect
# Local domain secure
traefik.http.routers.koillection-local.rule: Host(`koillection.${LOCAL_DOMAIN}`)
traefik.http.routers.koillection-local.entrypoints: websecure
traefik.http.routers.koillection-local.service: koillection
traefik.http.routers.koillection-local.tls: true
2023-10-30 08:45:36 +00:00
koillection-db:
2023-10-01 08:37:17 +00:00
image: postgres:15
2023-10-30 08:45:36 +00:00
container_name: koillection-db
2023-10-01 08:37:17 +00:00
restart: unless-stopped
environment:
2023-10-01 09:03:31 +00:00
- POSTGRES_DB=koillection
2023-10-30 09:05:25 +00:00
- POSTGRES_USER={KOILLECTION_DB_USER}
- POSTGRES_PASSWORD={KOILLECTION_DB_PASSWORD}
2023-10-01 08:56:05 +00:00
2023-10-01 08:37:17 +00:00
volumes:
- ${APP_DATA_DIR}/data/volumes/postgresql:/var/lib/postgresql/data
networks:
2023-10-30 08:45:36 +00:00
- tipi_main_network