-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod-local.yml
More file actions
106 lines (101 loc) · 2.12 KB
/
docker-compose.prod-local.yml
File metadata and controls
106 lines (101 loc) · 2.12 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
networks:
traefik-public:
external: true
redis-network:
driver: bridge
volumes:
data:
redis:
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