-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod-local.yml
139 lines (132 loc) · 2.81 KB
/
docker-compose.prod-local.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
version: '3.7'
networks:
traefik-public:
external: true
redis-network:
driver: bridge
volumes:
data:
redis:
minio-data:
services:
app:
restart: unless-stopped
container_name: deploy-party-app
image: ghcr.io/lennetech/deploy.party/app:latest
entrypoint: ['/bin/sh', '-c']
depends_on:
- api
networks:
- traefik-public
env_file:
- .env
healthcheck:
test: curl --fail http://localhost:3000 || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
ports:
- '3001:3000'
deploy:
update_config:
order: start-first
failure_action: rollback
delay: 10s
rollback_config:
order: stop-first
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
command:
- |
npm run build
node .output/server/index.mjs
api:
restart: unless-stopped
container_name: deploy-party-api
depends_on:
- db
- redis
image: ghcr.io/lennetech/deploy.party/api:latest
networks:
- traefik-public
- default
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '/data:/data'
env_file:
- .env
healthcheck:
test: curl --fail http://localhost:3000/meta || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
ports:
- '3000:3000'
- '3002:4800'
deploy:
update_config:
order: start-first
failure_action: rollback
delay: 10s
rollback_config:
order: stop-first
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
entrypoint: ['/bin/sh', '-c']
command:
- |
npm run migrate:prod:up
node ./dist/src/main.js
redis:
image: redis:7.2
restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass ${NSC__REDIS__PASSWORD}
env_file:
- .env
volumes:
- redis:/data
db:
image: mongo:5.0
networks:
- default
env_file:
- .env
volumes:
- data:/data/db
minio:
image: quay.io/minio/minio:latest
command: 'server /data --console-address ":9001"'
networks:
- traefik-public
env_file:
- .env
ports:
- '9000:9000'
- '9001:9001'
volumes:
- 'minio-data:/data'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 20s
retries: 10
deploy:
update_config:
order: start-first
failure_action: rollback
delay: 10s
rollback_config:
order: stop-first
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s