-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.34 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
version: "3"
services:
portainer:
image: portainer/portainer-ce:2.1.1
container_name: portainer
depends_on:
- traefik
command: -H unix:///var/run/docker.sock
ports:
- "9000:9000"
- "8000:8000"
networks:
- devops
labels:
- traefik.enable=true
- traefik.http.routers.portainer.entrypoints=http,https
- traefik.http.routers.portainer.rule=Host(`portainer.docker.localhost`)
- traefik.http.routers.portainer.tls=true
- traefik.http.services.portainer.loadbalancer.server.port=9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer-data:/data
traefik:
restart: always
image: traefik:2.4.5
ports:
- "80:80"
- "443:443"
networks:
- devops
- inbound
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs:/certs:ro
- ./traefik/traefik.yml:/traefik.yml:ro
- ./traefik/dynamic.yml:/dynamic.yml:ro
labels:
- traefik.enable=true
- traefik.http.routers.mydevproxy.entrypoints=http,https
- traefik.http.routers.mydevproxy.rule=Host(`traefik.docker.localhost`)
- traefik.http.routers.mydevproxy.tls=true
- traefik.http.routers.mydevproxy.service=api@internal
networks:
devops:
name: devops
inbound:
name: inbound
volumes:
portainer-data: