init portainer
This commit is contained in:
parent
9e99b7fe02
commit
242363bccc
1
dockers/portainer/.env
Symbolic link
1
dockers/portainer/.env
Symbolic link
@ -0,0 +1 @@
|
||||
../../config/dockers.env
|
35
dockers/portainer/docker-compose.yml
Normal file
35
dockers/portainer/docker-compose.yml
Normal file
@ -0,0 +1,35 @@
|
||||
services:
|
||||
portainer:
|
||||
image: portainer/portainer-ce:latest
|
||||
container_name: portainer
|
||||
ports:
|
||||
- 9000:9000
|
||||
networks:
|
||||
- portainerNet
|
||||
volumes:
|
||||
- portainer_data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
|
||||
# Frontend
|
||||
- "traefik.http.routers.frontend.rule=Host(`portainer.${domain}`)"
|
||||
# - "traefik.docker.network=portainerNet"
|
||||
- "traefik.http.routers.frontend.entrypoints=websecure"
|
||||
- "traefik.http.services.frontend.loadbalancer.server.port=9000"
|
||||
- "traefik.http.routers.frontend.service=frontend"
|
||||
|
||||
# Edge
|
||||
- "traefik.http.routers.edge.rule=Host(`edge.${domain}`)"
|
||||
- "traefik.http.routers.edge.entrypoints=websecure"
|
||||
- "traefik.http.services.edge.loadbalancer.server.port=8000"
|
||||
- "traefik.http.routers.edge.service=edge"
|
||||
|
||||
volumes:
|
||||
portainer_data:
|
||||
|
||||
networks:
|
||||
portainerNet:
|
||||
external: true
|
||||
name: portainerNet
|
Loading…
Reference in New Issue
Block a user