44 lines
1008 B
YAML
44 lines
1008 B
YAML
services:
|
|
app:
|
|
build: .
|
|
container_name: spotify-vibe-bot-app
|
|
restart: unless-stopped
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.docker.network=web
|
|
- traefik.http.routers.spotify-vibe.rule=Host(`${TRAEFIK_HOSTNAME}`)
|
|
- traefik.http.routers.spotify-vibe.entrypoints=websecure
|
|
- traefik.http.routers.spotify-vibe.tls.certresolver=letsencrypt
|
|
- traefik.http.services.spotify-vibe.loadbalancer.server.port=8000
|
|
ports:
|
|
- "${APP_PORT:-8000}:8000"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
TZ: "${TZ:-UTC}"
|
|
volumes:
|
|
- ./data:/data
|
|
command: ["/app/scripts/start_app.sh"]
|
|
networks:
|
|
- default
|
|
- web
|
|
|
|
cron:
|
|
profiles: ["cron"]
|
|
build: .
|
|
container_name: spotify-vibe-bot-cron
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- app
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
TZ: "${TZ:-UTC}"
|
|
command: ["/app/scripts/start_cron.sh"]
|
|
networks:
|
|
- default
|
|
|
|
networks:
|
|
web:
|
|
external: true
|