-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
81 lines (81 loc) · 1.72 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
81
version: '2'
services:
cke:
container_name: cke
image: quay.io/cybozu/cke:1.26.3
networks:
app_net:
ipv4_address: 172.30.0.11
user: "${UID}:${GID}"
volumes:
- ./cke.config.yml:/etc/cke/config.yml
- ./bin:/host
- ./cke-entrypoint.sh:/entrypoint.sh
depends_on:
- etcd
- vault
restart: always
entrypoint:
- /entrypoint.sh
setup:
container_name: setup
image: ghcr.io/cybozu/ubuntu-debug:22.04
networks:
app_net:
ipv4_address: 172.30.0.12
user: "${UID}:${GID}"
volumes:
- ./bin:/usr/local/bin
- ./setup:/opt/setup
- ./cke.config.yml:/etc/cke/config.yml
depends_on:
- vault
- etcd
- cke
command: /opt/setup/setup.sh
vault:
container_name: vault
image: ghcr.io/cybozu/vault:1.16
networks:
app_net:
ipv4_address: 172.30.0.13
user: "${UID}:${GID}"
cap_add:
- IPC_LOCK
depends_on:
- etcd
volumes:
- ./vault.hcl:/etc/vault/config.hcl
- ./bin:/host
- ./vault-entrypoint.sh:/entrypoint.sh
ports:
- "8200:8200"
- "8201:8201"
restart: always
entrypoint:
- /entrypoint.sh
etcd:
container_name: etcd
image: ghcr.io/cybozu/etcd:3.5
networks:
app_net:
ipv4_address: 172.30.0.14
user: "${UID}:${GID}"
volumes:
- ./etcd-data:/data/etcd
- ./etcd.conf.yml:/etc/etcd/etcd.conf.yml
- ./bin:/host
- ./etcd-entrypoint.sh:/entrypoint.sh
ports:
- "2379:2379"
- "2380:2380"
restart: always
entrypoint:
- /entrypoint.sh
networks:
app_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.30.0.0/24