web-anindhaloka/docker-compose.yml
2025-05-02 13:24:36 +07:00

38 lines
803 B
YAML

version: '3.8'
services:
web:
build:
context: ./dockers/python
dockerfile: Dockerfile
command: gunicorn hello_django.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
expose:
- 8000
# env_file:
# - ./.env.prod
# depends_on:
# - db
# db:
# image: postgres:15
# volumes:
# - postgres_data:/var/lib/postgresql/data/
# env_file:
# - ./.env.prod.db
nginx:
build:
context: ./dockers/nginx
dockerfile: Dockerfile
volumes:
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
ports:
- 1337:9003
depends_on:
- web
volumes:
static_volume:
media_volume: