37 lines
697 B
YAML
37 lines
697 B
YAML
version: "3"
|
|
services:
|
|
portainer:
|
|
image: portainer/portainer-ce:latest
|
|
container_name: portainer
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- 9000:9000/tcp
|
|
|
|
environment:
|
|
- DOMAIN_ROOT=${DOMAIN_ROOT}
|
|
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.portainer.rule=Host(`portainer.${DOMAIN_ROOT}`)"
|
|
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
|
|
|
volumes:
|
|
- portainer_data:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
extra_hosts:
|
|
- "gitea.stevedudenhoeffer.com:192.168.0.197"
|
|
|
|
networks:
|
|
- web
|
|
|
|
networks:
|
|
web:
|
|
external: true
|
|
|
|
volumes:
|
|
portainer_data:
|
|
external: true
|
|
|