Files
docker-compose-cookbooks/portainer/docker-compose.yml
T
nick 206ed58eb9 Cleaned up all compose files
cleaned up all the files.
they should now all work for multiple projects.
2020-04-16 21:13:59 -07:00

41 lines
1.1 KiB
YAML

################################################################################
# Portainer
# You should only need one instance of this running
# Change .env then
# docker-compose up -d
#
# Version 1
################################################################################
version: '3.3'
volumes:
portainer:
networks:
traefik_web:
external:
name: ${NETWORK_NAME}
services:
portainer:
# https://hub.docker.com/r/portainer/portainer
image: portainer/portainer:${PORTAINER_V}
container_name: portainer
hostname: portainer
command: -H unix:///var/run/docker.sock
restart: unless-stopped
networks:
- ${NETWORK_NAME}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer:/data
command: -H unix:///var/run/docker.sock
labels:
- "traefik.enable=true"
- "traefik.http.routers.portainer.rule=Host(`${DOMAIN_NAME}`)"
- "traefik.http.routers.portainer.entrypoints=websecure"
- "traefik.http.routers.portainer.tls=true"
- "traefik.http.services.portainer.loadbalancer.server.port=9000"