-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (78 loc) · 1.98 KB
/
docker-compose.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
services:
passiflora-gateway:
build:
context: .
dockerfile: Dockerfile-gateway
environment:
TZ: Asia/Shanghai
volumes:
- /etc/localtime:/etc/localtime:ro
container_name: passiflora-gateway
restart: unless-stopped
image: passiflora-gateway
extra_hosts:
- "passiflora-nacos:host-gateway"
- "passiflora-redis:host-gateway"
expose:
- 51000
ports:
- "51000:51000"
healthcheck:
test: [ "CMD", "curl", "http://localhost:51000" ]
start_period: 90s
interval: 60s
timeout: 10s
retries: 5
passiflora-iam:
build:
context: .
dockerfile: Dockerfile-iam
environment:
TZ: Asia/Shanghai
volumes:
- /etc/localtime:/etc/localtime:ro
container_name: passiflora-iam
restart: unless-stopped
image: passiflora-iam
extra_hosts:
- "passiflora-nacos:host-gateway"
- "passiflora-postgres:host-gateway"
- "passiflora-redis:host-gateway"
expose:
- 51001
depends_on:
passiflora-gateway:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:51001/passiflora/iam-api" ]
start_period: 90s
interval: 60s
timeout: 10s
retries: 5
passiflora-storage:
build:
context: .
dockerfile: Dockerfile-storage
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
TZ: Asia/Shanghai
container_name: passiflora-storage
restart: unless-stopped
image: passiflora-file
extra_hosts:
- "passiflora-nacos:host-gateway"
- "passiflora-postgres:host-gateway"
- "passiflora-redis:host-gateway"
- "passiflora-oss:host-gateway"
expose:
- 51002
depends_on:
passiflora-gateway:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:51002/passiflora/storage-api" ]
start_period: 90s
interval: 60s
timeout: 10s
retries: 5