A kind of initial commit
This commit is contained in:
43
docker-compose.yml
Normal file
43
docker-compose.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
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
|
||||
Reference in New Issue
Block a user