-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathdocker-compose.prod.yml
85 lines (85 loc) · 1.85 KB
/
docker-compose.prod.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
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
services:
proxy:
restart: unless-stopped
build:
context: ./proxy
ports:
- "8000:8000"
depends_on:
- client
- mongo
- server
- redis
- prometheus
labels:
wud.display.name: "SSM - Proxy"
wud.watch.digest: false
prometheus:
env_file: .env
build:
context: ./prometheus # Directory containing Dockerfile and prometheus.yml
container_name: prometheus-ssm
restart: unless-stopped
volumes:
- ./.data.prod/prometheus:/prometheus
labels:
wud.display.name: "SSM - Prometheus"
mongo:
container_name: mongo-ssm
image: mongo
restart: unless-stopped
volumes:
- ./.data.prod/db:/data/db
command: --quiet
labels:
wud.display.name: "SSM - MongoDB"
redis:
container_name: cache-ssm
image: redis
restart: unless-stopped
volumes:
- ./.data.prod/cache:/data
command: --save 60 1
labels:
wud.display.name: "SSM - Redis"
server:
restart: unless-stopped
healthcheck:
test: curl --fail http://localhost:3000/ping || exit 1
interval: 40s
timeout: 30s
retries: 3
start_period: 60s
external_links:
- mongo
- redis
- prometheus
depends_on:
- mongo
- redis
- prometheus
volumes:
- ./.data.prod:/data
build:
context: ./server
additional_contexts:
- shared-lib=./shared-lib
target: production
env_file: .env
environment:
NODE_ENV: production
labels:
wud.display.name: "SSM - Server"
wud.watch.digest: false
client:
restart: unless-stopped
depends_on:
- server
build:
context: ./client
additional_contexts:
- shared-lib=./shared-lib
target: production
labels:
wud.display.name: "SSM - Client"
wud.watch.digest: false