init compose
This commit is contained in:
commit
dc4006f506
10 changed files with 488 additions and 0 deletions
31
portainer/docker-compose.yml
Normal file
31
portainer/docker-compose.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
version: "3"
|
||||
|
||||
services:
|
||||
portainer:
|
||||
image: portainer/portainer-ce
|
||||
container_name: portainer
|
||||
restart: unless-stopped
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
networks:
|
||||
- proxy
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ${PWD}/portainer/data:/data
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.portainer.entrypoints=http"
|
||||
- "traefik.http.routers.portainer.rule=Host(`portainer.${URL}`)"
|
||||
- "traefik.http.middlewares.portainer-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.portainer.middlewares=portainer-https-redirect"
|
||||
- "traefik.http.routers.portainer-secure.entrypoints=https"
|
||||
- "traefik.http.routers.portainer-secure.rule=Host(`portainer.local.waylonwalker.com`)"
|
||||
- "traefik.http.routers.portainer-secure.tls=true"
|
||||
- "traefik.http.routers.portainer-secure.service=portainer"
|
||||
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
||||
- "traefik.docker.network=proxy"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue