freekake_api/docker-compose.yml
2025-06-20 13:54:37 +07:00

27 lines
539 B
YAML

services:
web:
build:
context: .
dockerfile: ./Dockerfile
# command: gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000
command: sh -c "gunicorn freekake_api.wsgi:application --bind 0.0.0.0:8000"
volumes:
- .:/app
- static_volume:/app/static
expose:
- "8000"
nginx:
image: nginx:1.28-bookworm
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- static_volume:/static
depends_on:
- web
volumes:
static_volume: