-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 893 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3.8'
services:
db:
image: postgres:13.0-alpine
restart: always
container_name: db
env_file: .env.db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
web:
image: "backend"
restart: always
container_name: app
build:
context: .
env_file: .env
ports:
- "8000:8000"
depends_on:
- db
volumes:
- .:/home/app/web
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/media
command: [ "sh","./start" ]
nginx:
build: ./nginx
env_file: ./.env
depends_on:
- web
ports:
- "80:80"
volumes:
- nginx_conf:/etc/nginx/conf.d
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/media
restart: always
volumes:
nginx_conf:
media_volume:
postgres_data:
static_volume: