This repository was archived by the owner on Mar 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (85 loc) · 1.9 KB
/
docker-compose.yml
File metadata and controls
86 lines (85 loc) · 1.9 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.7'
services:
postgres:
image: postgres:10.7
ports:
- "127.0.0.1:${DB_PORT}:${DB_PORT}"
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- "postgres_data:/var/lib/postgresql/data"
- "./init-postgres-ssl.sh:/docker-entrypoint-initdb.d/init-ssl.sh"
command: ["postgres", "-c", "ssl=on"]
node:
build:
context: .
target: base
args:
OPEN_PORT: ${SERVER_PORT}
environment:
- APP_NAME
- APP_VERSION
- CAS_URL
- CLIENT_URL
- PUBLIC_CLIENT_URL
- DB_HOSTNAME
- DB_PORT
- DB_DATABASE
- DB_USERNAME
- DB_PASSWORD
- REDIS_HOST
- REDIS_PASSWORD
- REDIS_PORT
- REDIS_PREFIX
- LOG_LEVEL
- NODE_ENV
- SERVER_URL
- SERVER_PORT
- SESSION_SECRET
- HTTPS_ON
- HTTPS_PRIVATE_KEY
- HTTPS_PUBLIC_CERT
user: "1000:1000"
ports:
- "127.0.0.1:${SERVER_PORT}:${SERVER_PORT}"
volumes:
- ".:/node:rw"
command: ["npm", "run", "start:server"]
links:
- redis
- postgres
depends_on:
- "postgres"
- "redis"
client:
build:
context: .
target: base
args:
OPEN_PORT: ${CLIENT_PORT}
environment:
- APP_NAME
- APP_VERSION
- CLIENT_PORT
- SERVER_URL
- SERVER_PORT
- PUBLIC_CLIENT_URL
user: "1000:1000"
ports:
- "127.0.0.1:${CLIENT_PORT}:${CLIENT_PORT}"
volumes:
- ".:/node:rw"
command: ["npm", "run", "start:client"]
redis:
image: bitnami/redis:6.2
environment:
- REDIS_PASSWORD
ports:
- "127.0.0.1:${REDIS_PORT}:${REDIS_PORT}"
volumes:
- "./init-redis-ssl.sh:/opt/bitnami/scripts/redis/init-redis-ssl.sh"
command: /opt/bitnami/scripts/redis/init-redis-ssl.sh
volumes:
postgres_data: