-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
40 lines (39 loc) · 1.28 KB
/
Copy pathcompose.yaml
File metadata and controls
40 lines (39 loc) · 1.28 KB
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
networks:
portainer:
name: portainer
public:
external: true
services:
agent:
container_name: portainer_agent
image: portainer/agent:${IMAGE_TAG:-sts}
networks:
- portainer
pull_policy: always
restart: unless-stopped
volumes:
- '/mnt/.ix-apps/docker/volumes:/var/lib/docker/volumes'
- '/var/run/docker.sock:/var/run/docker.sock'
portainer:
container_name: portainer
image: portainer/portainer-ee:${IMAGE_TAG:-sts}
labels:
homepage.group: Network
homepage.href: https://${HOST:-portainer.${BASE_DOMAIN}}
homepage.icon: portainer.png
homepage.name: Portainer
traefik.enable: true
traefik.http.routers.portainer.rule: Host(`${HOST:-portainer.${BASE_DOMAIN}}`)
traefik.http.routers.portainer.tls.certresolver: myresolver
traefik.http.routers.portainer.tls.domains[0].main: ${TLS_CERT_DOMAIN:-${BASE_DOMAIN}}
traefik.http.routers.portainer.tls.domains[0].sans: ${TLS_CERT_SANS:-*.${BASE_DOMAIN}}
traefik.http.services.portainer.loadbalancer.server.port: 9000
networks:
- portainer
- public
ports:
- 9000:9000 # For access when traefik is not up
pull_policy: always
restart: unless-stopped
volumes:
- /mnt/pool0/containers/portainer:/data