mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
made a lot of changes to accomodate running the same app for differnt projects.
This commit is contained in:
@@ -13,28 +13,25 @@ volumes:
|
||||
portainer:
|
||||
|
||||
networks:
|
||||
traefik_web:
|
||||
admin_web:
|
||||
external:
|
||||
name: ${NETWORK_NAME}
|
||||
name: admin_web
|
||||
|
||||
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}
|
||||
- admin_web
|
||||
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.rule=Host(`${PORTAINER_DOMAIN_NAME}`)"
|
||||
- "traefik.http.routers.portainer.entrypoints=websecure"
|
||||
- "traefik.http.routers.portainer.tls=true"
|
||||
- "traefik.http.services.portainer.loadbalancer.server.port=9000"
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
# Domains & Project
|
||||
DOMAIN_NAME=passbolt.nickyeoman.com
|
||||
PORTAINER_DOMAIN_NAME=portainer.nickyeoman.com
|
||||
|
||||
# Software versions
|
||||
PORTAINER_V=1.23.2
|
||||
|
||||
# Network
|
||||
NETWORK_NAME=traefik_web
|
||||
# https://hub.docker.com/r/portainer/portainer
|
||||
PORTAINER_V=1.23.2
|
||||
|
||||
Reference in New Issue
Block a user