-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
80 lines (74 loc) · 2.06 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
---
services:
router:
image: traefik:v3.0.4
container_name: router
restart: on-failure
ports:
- '80:80'
- '443:443'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik/conf/traefik.yml:/etc/traefik/traefik.yml
- ./traefik/certs/cert.pem:/etc/traefik/cert.pem
- ./traefik/certs/key.pem:/etc/traefik/key.pem
labels:
- traefik.enable=true
- traefik.http.routers.router.rule=Host(`router${SHARED_DOMAIN_SEGMENT}.docker`)
- traefik.http.routers.router.entrypoints=websecure
- traefik.http.services.router.loadbalancer.server.port=8080
- traefik.http.routers.router.tls=true
healthcheck:
test: ['CMD-SHELL', 'traefik healthcheck --ping']
interval: 4s
timeout: 4s
retries: 8
start_period: 4s
ui:
image: portainer/portainer-ce:2.20.3-alpine
container_name: ui
restart: on-failure
ports:
- '9000'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ui_data:/data
command: '-H unix:///var/run/docker.sock'
labels:
- traefik.enable=true
- traefik.http.routers.ui.rule=Host(`ui${SHARED_DOMAIN_SEGMENT}.docker`)
- traefik.http.routers.ui.entrypoints=websecure
- traefik.http.services.ui.loadbalancer.server.port=9000
- traefik.http.routers.ui.tls=true
healthcheck:
test: 'wget -q --no-verbose --tries=3 --spider --no-check-certificate http://127.0.0.1:9000/api/system/status || exit 1'
interval: 4s
timeout: 4s
retries: 8
start_period: 4s
dns:
image: drpsychick/dnsmasq:latest
container_name: dnsmasq
restart: unless-stopped
env_file:
- .env
ports:
- '53:53/tcp'
- '53:53/udp'
cap_add:
- NET_ADMIN
healthcheck:
test: ['CMD-SHELL', 'nslookup localhost 127.0.0.1 || exit 1']
interval: 4s
timeout: 4s
retries: 8
start_period: 4s
networks:
default:
name: network.${COMPOSE_PROJECT_NAME}
ipam:
config:
- subnet: 172.100.61.0/24
volumes:
ui_data:
...