28 lines
480 B
YAML
28 lines
480 B
YAML
version: '3'
|
|
|
|
services:
|
|
web:
|
|
container_name: django
|
|
build: djangoproject/
|
|
env_file:
|
|
- project.env
|
|
expose:
|
|
- 8000
|
|
volumes:
|
|
- staticfiles:/home/app/web/staticfiles
|
|
nginx:
|
|
container_name: nginx
|
|
image: nginx:mainline-alpine
|
|
restart: always
|
|
ports:
|
|
- 8888:80
|
|
volumes:
|
|
- ./nginx:/etc/nginx/conf.d
|
|
- staticfiles:/home/app/web/staticfiles
|
|
depends_on:
|
|
- web
|
|
|
|
volumes:
|
|
postgres-data:
|
|
staticfiles:
|