dawdle/docker-compose.yml
2024-03-21 20:15:32 +11:00

34 lines
849 B
YAML

version: "3"
services:
dawdle:
build: .
volumes:
# Your specific data
- ./af/backups:/data/af/backups
- ./af/events.txt:/data/af/events.txt
- ./af/dawdle.conf:/data/af/dawdle.conf
- ./af/dawdle.log:/data/af/dawdle.log
# Bot Code
- ./dawdle:/data/dawdle
- ./dawdle.py:/data/dawdle.py
# Database
- ./site:/data/site
command: python /data/dawdle.py /data/af/dawdle.conf
restart: unless-stopped
web:
build: .
volumes:
- ./site:/site
working_dir: /site
restart: unless-stopped
command: python manage.py runserver 0.0.0.0:8000
nginx:
image: docker.io/library/nginx:stable-alpine
volumes:
- ./site/static:/usr/share/nginx/html:ro
- ./nginx.conf.template:/etc/nginx/templates/default.conf.template
restart: unless-stopped