-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
46 lines (46 loc) · 938 Bytes
/
docker-compose.yaml
File metadata and controls
46 lines (46 loc) · 938 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
46
version: '3.7'
services:
web:
build: .
command: bash script/run_web.sh
restart: on-failure
env_file:
- ./.env
expose:
- '8000'
volumes:
- static_volume:/code/staticfiles
- media_volume:/code/mediafiles
depends_on:
- db
db:
image: postgres:12.0-alpine
restart: on-failure
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env
environment:
- POSTGRES_USER=${RDS_USERNAME}
- POSTGRES_PASSWORD=${RDS_PASSWORD}
- POSTGRES_DB=${RDS_DB_NAME}
ports:
- ${RDS_PORT}:5434
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
restart: on-failure
env_file:
- ./.env
ports:
- ${NGINX_PORT}:80
volumes:
- static_volume:/code/staticfiles
- media_volume:/code/mediafiles
depends_on:
- web
volumes:
postgres_data:
static_volume:
media_volume: