-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
104 lines (97 loc) · 2.3 KB
/
docker-compose.yaml
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
version: "3"
services:
backbone:
container_name: nebula-backbone
restart: unless-stopped
depends_on:
db:
condition: service_healthy
image: ghcr.io/cremithq/nebula-backbone:latest
pull_policy: always
ports:
- 8080:8080
networks:
- nebula
entrypoint: ["nebula-backbone"]
command:
- "--config"
- "/etc/nebula/backbone_config.toml"
volumes:
- ./config/:/etc/nebula/
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8080' || exit 1
interval: 30s
timeout: 15s
retries: 3
authority:
container_name: nebula-authority
restart: unless-stopped
depends_on:
db:
condition: service_healthy
backbone:
condition: service_healthy
authorization:
condition: service_healthy
image: ghcr.io/cremithq/nebula-authority:latest
pull_policy: always
ports:
- 8090:8090
networks:
- nebula
entrypoint: ["nebula-authority"]
command:
- "--config"
- "/etc/nebula/authority_config.toml"
volumes:
- ./config/:/etc/nebula/
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8090' || exit 1
interval: 30s
timeout: 15s
retries: 3
authorization:
container_name: nebula-authorization
restart: unless-stopped
depends_on:
db:
condition: service_healthy
backbone:
condition: service_healthy
image: ghcr.io/cremithq/nebula-authorization:latest
pull_policy: always
ports:
- 9000:9000
networks:
- nebula
entrypoint: ["nebula-authorization"]
command:
- "--config"
- "/etc/nebula/authorization_config.toml"
volumes:
- ./config/:/etc/nebula/
healthcheck:
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
interval: 30s
timeout: 15s
retries: 3
db:
container_name: nebula-db
image: postgres:17-alpine
restart: always
env_file:
- .db.env
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- nebula
healthcheck:
test: "pg_isready --username=${POSTGRES_USER} && psql --username=${POSTGRES_USER} --list"
interval: 5s
timeout: 10s
retries: 10
volumes:
pg_data:
driver: local
networks:
nebula: