Moved to a new container... hopefully we have the same results

This commit is contained in:
Luke Else 2023-08-07 22:33:38 +01:00
parent dfadd63ea5
commit 1ee167aad3
2 changed files with 12 additions and 39 deletions

View File

@ -1,8 +1,7 @@
version: '3.8'
services:
#gitea (222)
#gitea (222)
gitea:
image: gitea/gitea:latest
container_name: gitea
@ -10,6 +9,8 @@ services:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
- proxy
ports:
- "222:22"
environment:
@ -28,7 +29,12 @@ services:
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
restart: unless-stopped
networks:
proxy:
external: true

View File

@ -30,39 +30,6 @@ services:
- "traefik.http.middlewares.traefik-auth.basicauth.users=user:$$2y$$05$$s/vPphFtSO2fWJR7SYkEb.90UwPDRM3aOKqgOF/rme/3fUQ5tvpTS"
restart: unless-stopped
#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
networks:
proxy:
name: proxy