pangolin
This commit is contained in:
+21
-19
@@ -4,6 +4,8 @@ services:
|
||||
image: fosrl/pangolin:latest
|
||||
container_name: pangolin
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- traefik
|
||||
volumes:
|
||||
- /srv/pangolin/config:/app/config
|
||||
healthcheck:
|
||||
@@ -14,6 +16,8 @@ services:
|
||||
|
||||
gerbil:
|
||||
image: fosrl/gerbil:latest
|
||||
networks:
|
||||
- traefik
|
||||
container_name: gerbil
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
@@ -34,24 +38,22 @@ services:
|
||||
- 443:443 # Port for traefik because of the network_mode
|
||||
- 80:80 # Port for traefik because of the network_mode
|
||||
|
||||
traefik:
|
||||
image: traefik:v3.3.3
|
||||
container_name: traefik
|
||||
restart: unless-stopped
|
||||
network_mode: service:gerbil # Ports appear on the gerbil service
|
||||
depends_on:
|
||||
pangolin:
|
||||
condition: service_healthy
|
||||
command:
|
||||
- --configFile=/etc/traefik/traefik.yml
|
||||
volumes:
|
||||
- "./config/traefik.yml:/traefik.yml:ro"
|
||||
# - ./config/traefik.yml:/etc/traefik:ro # Volume to store the Traefik configuration
|
||||
- /srv/traefik/letsencrypt:/letsencrypt # Volume to store the Let's Encrypt certificates
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
- /var/log/traefik/:/opt/traefik/logs
|
||||
# traefik:
|
||||
# image: traefik:v3.3.3
|
||||
# container_name: traefik
|
||||
# restart: unless-stopped
|
||||
# network_mode: service:gerbil # Ports appear on the gerbil service
|
||||
# depends_on:
|
||||
# pangolin:
|
||||
# condition: service_healthy
|
||||
# command:
|
||||
# - --configFile=/etc/traefik/traefik.yml
|
||||
# volumes:
|
||||
# - "./config/traefik.yml:/traefik.yml:ro"
|
||||
# # - ./config/traefik.yml:/etc/traefik:ro # Volume to store the Traefik configuration
|
||||
# - /srv/traefik/letsencrypt:/letsencrypt # Volume to store the Let's Encrypt certificates
|
||||
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
# - /var/log/traefik/:/opt/traefik/logs
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
traefik:
|
||||
external: true
|
||||
name: traefik
|
||||
Reference in New Issue
Block a user