-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (49 loc) · 1.11 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
50 lines (49 loc) · 1.11 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
version: "3.7"
services:
web:
image: aunlead/angular-frontend:1.0.0
container_name: angular-frontend
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
restart: on-failure
networks:
- web
depends_on:
- api
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:test.aunlead.com"
- "traefik.port=80"
- "traefik.docker.network=web"
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- NODE_ENV=production
api:
image: aunlead/nodejs-backend:1.0.0
container_name: nodejs-backend
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
restart: on-failure
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:backend.aunlead.com"
- "traefik.port=3000"
- "traefik.docker.network=web"
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- NODE_ENV=production
networks:
web:
external: true