-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.web.yml
59 lines (55 loc) · 1.42 KB
/
docker-compose.web.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
version: "3.8"
services:
proxy:
image: nginx:latest
volumes:
- ./services/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- server
ports:
- target: 3000
published: 3030
mode: host
networks:
- backend
server:
image: pxseu/pxseu-dot-com_web:latest
build:
context: .
dockerfile: ./packages/web/Dockerfile
args:
API_ROUTE: https://api.pxseu.com
GITHUB_ID: 57842793
volumes:
- nextimagecache:/.next/cache/images
ports:
- target: 80
networks:
- backend
deploy:
replicas: 2
update_config:
parallelism: 2
order: start-first
failure_action: rollback
delay: 60s
rollback_config:
parallelism: 0
order: stop-first
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
healthcheck:
test: curl --fail http://localhost/ || exit 1
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
networks:
backend:
name: pxseu_web_swarm
driver: overlay
volumes:
nextimagecache: