ausglamr/docker-compose.yml
Hugh Rundle 6d6f1ad787
fixes
- restart container if it goes down
- connect to correct mastodon account!
- add check for `content` when parsing feeds
2024-01-27 11:26:05 +11:00

28 lines
565 B
YAML

version: '3'
services:
db:
image: postgres:13
env_file: .env
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- main
web:
build: .
env_file: .env
restart: unless-stopped
command: python manage.py runserver 0.0.0.0:8000 # only use in dev
# command: gunicorn --env DJANGO_SETTINGS_MODULE=ausglamr.settings ausglamr.wsgi --workers=10 --threads=4 -b 0.0.0.0:8000
volumes:
- .:/app
depends_on:
- db
networks:
- main
ports:
- "8282:8000"
volumes:
pgdata:
networks:
main: