2026-07-10 01:34:31 +02:00
|
|
|
services:
|
|
|
|
|
frontend:
|
|
|
|
|
build: ./frontend
|
|
|
|
|
ports:
|
2026-07-12 15:58:22 +02:00
|
|
|
- 3000:3000
|
2026-07-10 01:34:31 +02:00
|
|
|
depends_on:
|
|
|
|
|
backend:
|
|
|
|
|
condition: service_healthy
|
2026-07-11 18:17:07 +02:00
|
|
|
labels:
|
2026-07-12 15:58:22 +02:00
|
|
|
- traefik.enable=true
|
|
|
|
|
- traefik.http.middlewares.hms-gzip.compress=true
|
|
|
|
|
- traefik.http.middlewares.hms-redirect.redirectscheme.scheme=https
|
|
|
|
|
- traefik.http.routers.hms-http.entryPoints=http
|
|
|
|
|
- traefik.http.routers.hms-http.middlewares=hms-redirect
|
|
|
|
|
- traefik.http.routers.hms-http.rule=Host(`hms.media-on.de`) && PathPrefix(`/`)
|
|
|
|
|
- traefik.http.routers.hms-https.entryPoints=https
|
|
|
|
|
- traefik.http.routers.hms-https.middlewares=hms-gzip
|
|
|
|
|
- traefik.http.routers.hms-https.rule=Host(`hms.media-on.de`) && PathPrefix(`/`)
|
|
|
|
|
- traefik.http.routers.hms-https.tls=true
|
|
|
|
|
- traefik.http.routers.hms-https.tls.certresolver=letsencrypt
|
|
|
|
|
- traefik.http.services.hms.loadbalancer.server.port=3000
|
2026-07-10 01:34:31 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
2026-07-12 15:58:22 +02:00
|
|
|
test:
|
|
|
|
|
- CMD-SHELL
|
|
|
|
|
- curl -sf http://localhost:3000/ || exit 1
|
2026-07-10 01:34:31 +02:00
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 15s
|
|
|
|
|
networks:
|
2026-07-12 15:58:22 +02:00
|
|
|
- hms-network
|
|
|
|
|
- coolify
|
2026-07-10 01:34:31 +02:00
|
|
|
backend:
|
|
|
|
|
build: ./backend
|
|
|
|
|
depends_on:
|
|
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
redis:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
environment:
|
2026-07-12 15:58:22 +02:00
|
|
|
- DATABASE_URL=${DATABASE_URL:-postgresql+asyncpg://hms:hms@postgres:5432/hms}
|
|
|
|
|
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
|
|
|
|
|
- RENTMAN_API_TOKEN=${RENTMAN_API_TOKEN}
|
|
|
|
|
- JWT_SECRET=${JWT_SECRET}
|
|
|
|
|
- SMTP_HOST=${SMTP_HOST}
|
|
|
|
|
- SMTP_PORT=${SMTP_PORT:-587}
|
|
|
|
|
- SMTP_USER=${SMTP_USER}
|
|
|
|
|
- SMTP_PASSWORD=${SMTP_PASSWORD}
|
|
|
|
|
- SMTP_FROM=${SMTP_FROM:-info@hms-licht-ton.de}
|
|
|
|
|
- CORS_ORIGINS=${CORS_ORIGINS:-https://hms.media-on.de,http://localhost:3000}
|
|
|
|
|
- ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
|
|
|
|
|
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
|
|
|
|
- MCP_AUTH_TOKEN=${MCP_AUTH_TOKEN:-}
|
2026-07-11 18:17:07 +02:00
|
|
|
volumes:
|
2026-07-12 15:58:22 +02:00
|
|
|
- ./:/data/repo
|
|
|
|
|
- ./images:/data/images
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2026-07-10 01:34:31 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
2026-07-12 15:58:22 +02:00
|
|
|
test:
|
|
|
|
|
- CMD
|
|
|
|
|
- python
|
|
|
|
|
- -c
|
|
|
|
|
- import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')
|
2026-07-10 01:34:31 +02:00
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 10s
|
|
|
|
|
networks:
|
2026-07-12 15:58:22 +02:00
|
|
|
- hms-network
|
|
|
|
|
- coolify
|
|
|
|
|
labels:
|
|
|
|
|
- traefik.enable=true
|
|
|
|
|
- traefik.http.routers.hms-mcp-http.entryPoints=http
|
|
|
|
|
- traefik.http.routers.hms-mcp-http.rule=Host(`hms.media-on.de`) && PathPrefix(`/mcp`)
|
|
|
|
|
- traefik.http.routers.hms-mcp-http.middlewares=hms-redirect
|
|
|
|
|
- traefik.http.routers.hms-mcp-https.entryPoints=https
|
|
|
|
|
- traefik.http.routers.hms-mcp-https.rule=Host(`hms.media-on.de`) && PathPrefix(`/mcp`)
|
|
|
|
|
- traefik.http.routers.hms-mcp-https.tls=true
|
|
|
|
|
- traefik.http.routers.hms-mcp-https.tls.certresolver=letsencrypt
|
|
|
|
|
- traefik.http.routers.hms-mcp-https.middlewares=hms-gzip
|
|
|
|
|
- traefik.http.services.hms-mcp.loadbalancer.server.port=8000
|
2026-07-10 01:34:31 +02:00
|
|
|
postgres:
|
|
|
|
|
image: postgres:16-alpine
|
|
|
|
|
volumes:
|
2026-07-12 15:58:22 +02:00
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2026-07-10 01:34:31 +02:00
|
|
|
environment:
|
2026-07-12 15:58:22 +02:00
|
|
|
- POSTGRES_USER=hms
|
|
|
|
|
- POSTGRES_PASSWORD=hms
|
|
|
|
|
- POSTGRES_DB=hms
|
2026-07-13 02:48:41 +02:00
|
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
2026-07-10 01:34:31 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
2026-07-12 15:58:22 +02:00
|
|
|
test:
|
|
|
|
|
- CMD-SHELL
|
|
|
|
|
- pg_isready -U hms -d hms
|
2026-07-10 01:34:31 +02:00
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
start_period: 5s
|
|
|
|
|
networks:
|
2026-07-12 15:58:22 +02:00
|
|
|
- hms-network
|
2026-07-10 01:34:31 +02:00
|
|
|
redis:
|
|
|
|
|
image: redis:7-alpine
|
|
|
|
|
volumes:
|
2026-07-12 15:58:22 +02:00
|
|
|
- redis_data:/data
|
2026-07-10 01:34:31 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
2026-07-12 15:58:22 +02:00
|
|
|
test:
|
|
|
|
|
- CMD
|
|
|
|
|
- redis-cli
|
|
|
|
|
- ping
|
2026-07-10 01:34:31 +02:00
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
start_period: 5s
|
|
|
|
|
networks:
|
2026-07-12 15:58:22 +02:00
|
|
|
- hms-network
|
2026-07-10 01:34:31 +02:00
|
|
|
networks:
|
|
|
|
|
hms-network:
|
|
|
|
|
driver: bridge
|
2026-07-11 18:17:07 +02:00
|
|
|
coolify:
|
|
|
|
|
external: true
|
2026-07-10 01:34:31 +02:00
|
|
|
volumes:
|
2026-07-12 15:58:22 +02:00
|
|
|
postgres_data: null
|
|
|
|
|
redis_data: null
|