-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yaml
56 lines (52 loc) · 1.48 KB
/
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
volumes:
docker-certs-ca:
docker-certs-client:
downloaded-configs:
networks:
docker:
configs:
stamus-config:
file: ~/.config/stamus/config.json
services:
dind:
image: docker:27-dind
privileged: true
environment:
DOCKER_TLS_CERTDIR: ''
healthcheck:
test: ['CMD', 'docker', 'info']
interval: 10s
timeout: 10s
retries: 5
volumes:
- docker-certs-ca:/certs
- docker-certs-client:/certs/client
- downloaded-configs:/src/stamus-ctl/config/configs
- ~/.docker/config.json:/root/.docker/config.json:ro
networks:
- docker
ports:
- 443:443
restart: always
stamusctl:
build:
context: .
dockerfile: docker/Dockerfile.local
entrypoint: [sh, -c, 'while sleep 1; do :; done']
networks:
- docker
volumes:
- docker-certs-ca:/certs
- docker-certs-client:/certs/client
- downloaded-configs:/src/stamus-ctl/config/configs
- ~/.docker/config.json:/root/.docker/config.json:ro
- ./:/src/stamus-ctl
configs:
- source: stamus-config
target: /root/.config/stamus/config.json
environment:
DOCKER_HOST: tcp://dind:2375
DOCKER_TLS_CERTDIR: /certs
restart: always
depends_on:
- dind