-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (77 loc) · 1.71 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
82
83
services:
cilium:
init: true
restart: unless-stopped
container_name: bootstrap
build:
context: bootstrap
coredns:
init: true
restart: unless-stopped
container_name: coredns
build:
context: ./coredns
networks:
platform-net:
ipv4_address: ${_COREDNS_IP}
docker:
init: true
restart: unless-stopped
container_name: docker
user: root
build:
context: docker
args:
_UID: ${_UID}
privileged: true
volumes:
- ${_TALOS_PATH}:/talos # TODO: Don't mount this when not building from source
- docker-cache:/var/lib/docker
working_dir: /talos
networks:
- platform-net
healthcheck:
test: ["CMD", "test", "-f", "/tmp/ready"]
modprobe:
init: true
container_name: modprobe
build:
context: ./modprobe
privileged: true
volumes:
- /lib/modules:/lib/modules
network_mode: none
talos:
init: true
restart: unless-stopped
container_name: talos
build:
context: ./talos
volumes:
- ${_TALOS_PATH}:/talos:Z # TODO: Don't mount this when not building from source
- ${_CONFIG_PATH}:/config:ro,Z # TODO: Don't mount this, configuration is sourced through Flux
working_dir: /talos
cap_add:
- SYS_ADMIN
- NET_ADMIN
devices:
- /dev/kvm
- /dev/net/tun
ports:
- 8000-8100:8000-8100
networks:
- platform-net
depends_on:
docker:
condition: service_healthy
modprobe:
condition: service_completed_successfully
networks:
platform-net:
name: platform-net
ipam:
driver: default
config:
- subnet: ${_PLATFORM_NET_CIDR}
volumes:
docker-cache: