25 lines
434 B
YAML
25 lines
434 B
YAML
|
version: '3.8'
|
||
|
|
||
|
services:
|
||
|
web:
|
||
|
build: ./wedding_site
|
||
|
command: gunicorn wedding_site.wsgi:application --bind 0.0.0.0:8000
|
||
|
volumes:
|
||
|
- ./wedding_site/:/usr/src/app/
|
||
|
- static_volume:/staticfiles
|
||
|
expose:
|
||
|
- 8000
|
||
|
env_file:
|
||
|
- ./.env.prod
|
||
|
|
||
|
nginx:
|
||
|
build: ./nginx
|
||
|
ports:
|
||
|
- 8080:80
|
||
|
volumes:
|
||
|
- static_volume:/staticfiles
|
||
|
depends_on:
|
||
|
- web
|
||
|
|
||
|
volumes:
|
||
|
static_volume:
|