-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 1.08 KB
/
docker-compose.yml
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
47
48
49
50
51
# todo: version 2 for compatibility with Chombo- switch to 3
version: '2'
services:
web:
restart: always
build: .
container_name: escos_web
expose:
- "8000"
links:
- postgres_db:postgres_db
# todo: are there app env-specific things we want to include here?
# env_file:
# - .env
ports:
- "8000:8000"
command: /escalation/boot.sh
nginx:
restart: always
image: "nginx:1.13.5"
container_name: escos_nginx
ports:
- "80:80"
volumes:
- .:/www/static
links:
- web:web
data:
image: postgres:latest
volumes:
- db-data:/var/lib/postgresql/data
command: "true"
postgres_db:
restart: always
image: postgres:latest
container_name: escos_db
env_file:
- ./escalation/app_deploy_data/database_env_file
volumes:
- db-data:/var/lib/postgresql/data
# This file runs a db setup command that creates the upload metadata table
- ./escalation/database/container_db_init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
volumes:
db-data: