36 lines
694 B
YAML
36 lines
694 B
YAML
services:
|
|
|
|
webapp:
|
|
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/staticfiles
|
|
expose:
|
|
- "8000"
|
|
networks:
|
|
- freekake_net
|
|
|
|
nginx:
|
|
image: nginx:1.28-bookworm
|
|
restart: always
|
|
ports:
|
|
- "8000:80"
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
|
- static_volume:/static
|
|
- ./media:/media
|
|
depends_on:
|
|
- webapp
|
|
networks:
|
|
- freekake_net
|
|
|
|
volumes:
|
|
static_volume:
|
|
|
|
networks:
|
|
freekake_net:
|