32 lines
643 B
YAML
32 lines
643 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:
|
|
|
|
networks:
|
|
- bloonsworld
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
nginx_private:
|
|
external: true
|
|
bloonsworld: |