TraefikIntegration #5
@ -1,8 +1,7 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
#gitea (222)
|
||||||
#gitea (222)
|
|
||||||
gitea:
|
gitea:
|
||||||
image: gitea/gitea:latest
|
image: gitea/gitea:latest
|
||||||
container_name: gitea
|
container_name: gitea
|
||||||
@ -10,6 +9,8 @@ services:
|
|||||||
- ./gitea:/data
|
- ./gitea:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
ports:
|
ports:
|
||||||
- "222:22"
|
- "222:22"
|
||||||
environment:
|
environment:
|
||||||
@ -28,7 +29,12 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
## Expose Gitea Through Trefik ##
|
## Expose Gitea Through Trefik ##
|
||||||
- "traefik.enable=true" # <== Enable traefik to proxy this container
|
- "traefik.enable=true" # <== Enable traefik to proxy this container
|
||||||
|
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||||
- "traefik.http.routers.gitea.rule=Host(`test.luke-else.co.uk`)"
|
- "traefik.http.routers.gitea.rule=Host(`test.luke-else.co.uk`)"
|
||||||
- "traefik.http.routers.gitea.entrypoints=websecure"
|
- "traefik.http.routers.gitea.entrypoints=websecure"
|
||||||
- "traefik.http.routers.gitea.tls.certresolver=myresolver"
|
- "traefik.http.routers.gitea.tls.certresolver=myresolver"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
@ -30,39 +30,6 @@ services:
|
|||||||
- "traefik.http.middlewares.traefik-auth.basicauth.users=user:$$2y$$05$$s/vPphFtSO2fWJR7SYkEb.90UwPDRM3aOKqgOF/rme/3fUQ5tvpTS"
|
- "traefik.http.middlewares.traefik-auth.basicauth.users=user:$$2y$$05$$s/vPphFtSO2fWJR7SYkEb.90UwPDRM3aOKqgOF/rme/3fUQ5tvpTS"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
name: proxy
|
||||||
|
|
||||||
|
|
||||||
#gitea (222)
|
|
||||||
gitea:
|
|
||||||
image: gitea/gitea:latest
|
|
||||||
container_name: gitea
|
|
||||||
volumes:
|
|
||||||
- ./gitea:/data
|
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
ports:
|
|
||||||
- "222:22"
|
|
||||||
environment:
|
|
||||||
- APP_NAME="gitea"
|
|
||||||
- USER_UID=1000
|
|
||||||
- USER_GID=1000
|
|
||||||
- USER=git
|
|
||||||
- RUN_MODE=prod
|
|
||||||
- DOMAIN=test.luke-else.co.uk
|
|
||||||
- SSH_DOMAIN=test.luke-else.co.uk
|
|
||||||
- HTTP_PORT=3000
|
|
||||||
- ROOT_URL=https://test.luke-else.co.uk
|
|
||||||
- SSH_PORT=222
|
|
||||||
- SSH_LISTEN_PORT=22
|
|
||||||
- DB_TYPE=sqlite3
|
|
||||||
labels:
|
|
||||||
## Expose Gitea Through Trefik ##
|
|
||||||
- "traefik.enable=true" # <== Enable traefik to proxy this container
|
|
||||||
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
|
||||||
- "traefik.http.routers.gitea.rule=Host(`test.luke-else.co.uk`)"
|
|
||||||
- "traefik.http.routers.gitea.entrypoints=websecure"
|
|
||||||
- "traefik.http.routers.gitea.tls.certresolver=myresolver"
|
|
||||||
restart: unless-stopped
|
|
Loading…
Reference in New Issue
Block a user