bloonsworld/docker-compose-example.yml

38 lines
849 B
YAML

services:
bloonsworld:
build: ./app
volumes:
- ./.media:/app/media:ro
- ./.static:/app/static:rw
- ./.django:/app/data:rw
command:
- sh
- -c
- |
python manage.py collectstatic --noinput
gunicorn --chdir /app --bind :80 --workers 3 Settings.wsgi:application
environment:
- DJANGO_SECRET_KEY
- DJANGO_ALLOWED_HOSTS
- DJANGO_DEBUG
networks:
- nginx_private
- bloonsworld
restart: unless-stopped
bloonsworld-db:
image: postgres:17
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=$SQL_USER
- POSTGRES_PASSWORD=$SQL_PASSWORD
- POSTGRES_DB=$SQL_DATABASE
networks:
- bloonsworld
restart: unless-stopped
networks:
nginx_private:
external: true
bloonsworld: