-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (41 loc) · 1.03 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
version: "3.4"
services:
backend:
ports:
- "${PORT}:${PORT}"
depends_on:
- db
environment:
# Getting env. variable directly from host enviroment OR .env file and pass them into container.
- NODE_ENV
- PORT
- CORS_WHITE_LIST
- DBNAME
- DBUSERNAME
- DBPASSWORD
- DBHOST
- JWTSECRET
- JWTEXPIRES
- TWILIO_SID
- TWILIO_TOKEN
- TWILIO_NUMBER
- CODECOV_TOKEN
db:
container_name: hb-db-container
image: postgres:9.6
environment:
POSTGRES_DB: ${DBNAME}
POSTGRES_USER: ${DBUSERNAME}
POSTGRES_PASSWORD: ${DBPASSWORD}
volumes:
- "dbdata:/var/lib/postgresql/data"
# Just for easy database management.
dbadminer:
container_name: hb-dbadminer-container
image: adminer
ports:
- "8080:8080"
# Custom volume to store database data premenetly.
volumes:
? dbdata
? backendTempData # For holding container's node_modules without clashing with host node_modules. (See dc-development.yml)