-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.41 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
52
version: 3.8
services:
build:
context: ./server
# Target should only be development, test or production.
# Using other NODE_ENV values will require the dockerfile to be updated.
targer: ${NODE_ENV}
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
environment:
- NODE_ENV=${NODE_ENV}
- NODE_ENV_NAME=${NODE_ENV_NAME}
- DB_URI=${DB_URI}
- DB_OPERATIONAL_SCHEMA=${DB_OPERATIONAL_SCHEMA}
- DB_AUDIT_SCHEMA=${DB_AUDIT_SCHEMA}
- DB_AUDIT_ENABLED=${DB_AUDIT_ENABLED}
- DB_API_USER=${DB_API_USER}
- DB_API_USER_PASSWORD=${DB_API_USER_PASSWORD}
depends_on:
- db
client:
build:
context: ./client
# Target should only be development, test or production.
# Using other NODE_ENV values will require the dockerfile to be updated.
target: ${NODE_ENV}
ports:
- "${CLIENT_PORT}:${CLIENT_PORT}"
environment:
- NODE_ENV=${NODE_ENV}
- CLIENT_PROTOCOL=${CLIENT_PROTOCOL}
- CLIENT_SUBDOMAIN=${CLIENT_SUBDOMAIN}
- CLEINT_DOMAIN=${CLEINT_DOMAIN}
- CLIENT_URL=${CLIENT_URL}
- SERVER_API_URL=${SERVER_API_URL}
depends_on:
- server
db:
image: postgres:13
ports:
- "${DB_PORT}:5432"
environment:
- POSTGRES_USER=${DB_SUPER_USER}
- POSTGRES_PASSWORD=${DB_SUPER_USER_PASSWORD}
- POSTGRES_DB=${DB_NAME}
volumes:
- postgres_data:/data/postgres
volumes:
postgres_data: