2024-06-28 15:35:47 -05:00
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: ./franklincce
|
|
|
|
dockerfile: Dockerfile.prod
|
|
|
|
command: gunicorn franklincce.wsgi:application --bind 0.0.0.0:8000
|
|
|
|
volumes:
|
2024-06-28 17:04:45 -05:00
|
|
|
- type: volume
|
|
|
|
source: static_volume
|
|
|
|
target: /home/app/web/staticfiles
|
|
|
|
- type: bind
|
|
|
|
source: ./db.sqlite3
|
|
|
|
target: /home/app/web/db.sqlite3
|
2024-06-28 15:35:47 -05:00
|
|
|
expose:
|
|
|
|
- 8000
|
|
|
|
env_file:
|
|
|
|
- ./.env.prod
|
|
|
|
nginx:
|
|
|
|
build: ./nginx
|
|
|
|
volumes:
|
|
|
|
- static_volume:/home/app/web/staticfiles
|
|
|
|
ports:
|
|
|
|
- 1337:80
|
|
|
|
depends_on:
|
|
|
|
- web
|
|
|
|
volumes:
|
|
|
|
static_volume:
|
2024-06-28 17:04:45 -05:00
|
|
|
db_persist:
|