-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
53 lines (49 loc) · 1.27 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
53
version: '3.1'
services:
node:
image: olback/cah
restart: unless-stopped
tty: true
ports:
- 3004:3004
environment:
NODE_PORT: 3004
NODE_ENV: prod
NODE_SERVER_ADDR: cah.ninja:443
PG_USER: cah
PG_HOST: PG_HOST
PG_PORT: PG_PORT
PG_PASSWORD: PG_PASSWORD
PG_SSL_ALWAYS_TRUST: 'true'
# node:
# image: node:10-stretch
# restart: ${DOCKER_RESTART}
# command: ${NODE_COMMAND}
# tty: true
# ports:
# - "${NODE_PORT}:${NODE_PORT}" # host:container
# links:
# - postgres
# working_dir: /cah/server
# environment:
# NODE_PORT: ${NODE_PORT}
# NODE_ENV: ${NODE_ENV}
# NODE_SERVER_ADDR: ${NODE_SERVER_ADDR}
# PG_USER: ${PG_USER}
# PG_HOST: ${PG_HOST}
# PG_PORT: ${PG_PORT}
# PG_PASSWORD: ${PG_PASSWORD}
# volumes:
# - ${CAH_DIR}:/cah/
# postgres:
# image: postgres:10-alpine
# restart: ${DOCKER_RESTART}
# # ports:
# # - "${PG_PORT}:${PG_PORT}"
# environment:
# POSTGRES_USER: ${PG_USER}
# POSTGRES_PASSWORD: ${PG_PASSWORD}
# volumes:
# - ${DATA_STORE}/postgres:/var/lib/postgresql/data
# - ${CAH_DIR}/scripts/postgres:/scripts/
# - ${DUMP_DIR}/postgres:/export/