Chgt container_name et network

This commit is contained in:
sio user 2024-02-09 09:15:49 +01:00
parent 9a8cbf4d6c
commit 8d0119c4bb

View File

@ -82,7 +82,8 @@ cat > ./config/dynamic.yml <<EOT
http: http:
routers: routers:
traefik: traefik:
rule: "Host(`traefik.docker.localhost`)" # rule: "Host(`traefik.docker.localhost`)"
rule: "Host(`gitea.local`)"
service: "api@internal" service: "api@internal"
tls: tls:
domains: domains:
@ -110,7 +111,7 @@ volumes:
networks: networks:
proxy: proxy:
external: true external: true
gitea: app:
external: false external: false
services: services:
@ -131,7 +132,7 @@ services:
app: app:
image: gitea/gitea image: gitea/gitea
container_name: gitea container_name: app
restart: always restart: always
# ports: # ports:
# - 8081:80 # - 8081:80
@ -142,7 +143,7 @@ services:
- gitea:/var/www/html - gitea:/var/www/html
networks: networks:
- proxy - proxy
- gitea - app
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.app.rule=Host(`gitea.local`)" - "traefik.http.routers.app.rule=Host(`gitea.local`)"