This commit is contained in:
parent
22473bbf16
commit
c5cfbf9275
@ -2,41 +2,41 @@
|
|||||||
networks:
|
networks:
|
||||||
traefik_front_network:
|
traefik_front_network:
|
||||||
external: true
|
external: true
|
||||||
back_network_:
|
back_network_portainer:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
attachable: true
|
attachable: true
|
||||||
|
|
||||||
#### SERVICES
|
#### SERVICES
|
||||||
services:
|
services:
|
||||||
### hello_world
|
portainer:
|
||||||
hello_world:
|
container_name: portainer
|
||||||
container_name: gitea-app
|
hostname: portainer
|
||||||
hostname: gitea-app
|
image: portainer/portainer-ce:latest
|
||||||
image: hello-world
|
command: -H unix:///var/run/docker.sock
|
||||||
environment:
|
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
# - back_network_gitea
|
- back_network_portainer
|
||||||
- traefik_front_network
|
- traefik_front_network
|
||||||
volumes:
|
volumes:
|
||||||
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
- "./data:/data"
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=traefik_front_network"
|
- "traefik.docker.network=traefik_front_network"
|
||||||
# HTTP
|
# HTTP
|
||||||
- "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)"
|
- "traefik.http.routers.portainer-http.rule=Host(`portainer.tips-of-mine.com`)"
|
||||||
- "traefik.http.routers.hello-world-http.entrypoints=http"
|
- "traefik.http.routers.portainer-http.entrypoints=http"
|
||||||
- "traefik.http.routers.hello-world-http.priority=49"
|
|
||||||
# HTTPS
|
# HTTPS
|
||||||
- "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)"
|
- "traefik.http.routers.portainer-https.rule=Host(`portainer.tips-of-mine.com`)"
|
||||||
- "traefik.http.routers.hello-world-https.entrypoints=https"
|
- "traefik.http.routers.portainer-https.entrypoints=https"
|
||||||
- "traefik.http.routers.hello-world-https.tls=true"
|
- "traefik.http.routers.portainer-https.tls=true"
|
||||||
- "traefik.http.routers.hello-world-https.priority=50"
|
- "traefik.http.routers.portainer.service=portainer-https-service"
|
||||||
- "traefik.http.routers.gitea.service=gitea-https-service"
|
|
||||||
# Middleware
|
# Middleware
|
||||||
# Service
|
# Service
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000"
|
- "traefik.http.services.portainer-https-service.loadbalancer.server.port=9000"
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https"
|
# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https"
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me"
|
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=portainer.tips-of-mine.com"
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar"
|
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar"
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10"
|
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10"
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30"
|
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user