app-store/apps/gitea/docker-compose.yml

63 lines
2.1 KiB
YAML
Raw Permalink Normal View History

2022-07-28 17:46:12 +00:00
version: "3.7"
services:
gitea:
image: gitea/gitea:1.22.0
2022-07-28 17:46:12 +00:00
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=gitea-db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/data/gitea:/data
ports:
- ${APP_PORT}:3000
- "222:22"
depends_on:
- gitea-db
2022-11-11 19:33:58 +00:00
networks:
- tipi_main_network
labels:
local domain configs A-G (#676) * feat(actual-budget): change config to support local domain * feat(adguard): change config to support local domain * feat(autobrr): change config to support local domain * feat(barrage): change config to support local domain * feat(bazarr): change config to support local domain * feat(booksonic): change config to support local domain * feat(bookstack): change config to support local domain * feat(calibre-web): change config to support local domain * feat(chatgpt-ui): change config to support local domain * feat(chatpad): change config to support local domain * feat(code-server): change config to support local domain * feat(codex-docs): change config to support local domain * feat(dailytxt): change config to support local domain * feat(dashdot): change config to support local domain * feat(deemix): change config to support local domain * feat(deluge): change config to support local domain * feat(dokuwiki): change config to support local domain * feat(dozzle): change config to support local domain * feat(duplicati): change config to support local domain * feat(emulatorjs): change config to support local domain * feat(excalidraw): change config to support local domain * feat(filebrowser): change config to support local domain * feat(filestash): change config to support local domain * feat(firefly-iii): change config to support local domain * feat(fireshare): change config to support local domain * feat(flatnotes): change config to support local domain * feat(freshrss): change config to support local domain * feat(ghost): change config to support local domain * feat(gitea): change config to support local domain * feat(gotify): change config to support local domain * feat(gotosocial): change config to support local domain * feat(grafana): change config to support local domain * feat(grav): change config to support local domain * feat(grocy): change config to support local domain
2023-06-10 14:46:05 +00:00
# Main
traefik.enable: true
traefik.http.middlewares.gitea-web-redirect.redirectscheme.scheme: https
traefik.http.services.gitea.loadbalancer.server.port: 3000
# Web
traefik.http.routers.gitea-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.gitea-insecure.entrypoints: web
traefik.http.routers.gitea-insecure.service: gitea
traefik.http.routers.gitea-insecure.middlewares: gitea-web-redirect
# Websecure
2022-11-11 19:33:58 +00:00
traefik.http.routers.gitea.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.gitea.entrypoints: websecure
traefik.http.routers.gitea.service: gitea
traefik.http.routers.gitea.tls.certresolver: myresolver
local domain configs A-G (#676) * feat(actual-budget): change config to support local domain * feat(adguard): change config to support local domain * feat(autobrr): change config to support local domain * feat(barrage): change config to support local domain * feat(bazarr): change config to support local domain * feat(booksonic): change config to support local domain * feat(bookstack): change config to support local domain * feat(calibre-web): change config to support local domain * feat(chatgpt-ui): change config to support local domain * feat(chatpad): change config to support local domain * feat(code-server): change config to support local domain * feat(codex-docs): change config to support local domain * feat(dailytxt): change config to support local domain * feat(dashdot): change config to support local domain * feat(deemix): change config to support local domain * feat(deluge): change config to support local domain * feat(dokuwiki): change config to support local domain * feat(dozzle): change config to support local domain * feat(duplicati): change config to support local domain * feat(emulatorjs): change config to support local domain * feat(excalidraw): change config to support local domain * feat(filebrowser): change config to support local domain * feat(filestash): change config to support local domain * feat(firefly-iii): change config to support local domain * feat(fireshare): change config to support local domain * feat(flatnotes): change config to support local domain * feat(freshrss): change config to support local domain * feat(ghost): change config to support local domain * feat(gitea): change config to support local domain * feat(gotify): change config to support local domain * feat(gotosocial): change config to support local domain * feat(grafana): change config to support local domain * feat(grav): change config to support local domain * feat(grocy): change config to support local domain
2023-06-10 14:46:05 +00:00
# Local domain
traefik.http.routers.gitea-local-insecure.rule: Host(`gitea.${LOCAL_DOMAIN}`)
traefik.http.routers.gitea-local-insecure.entrypoints: web
traefik.http.routers.gitea-local-insecure.service: gitea
traefik.http.routers.gitea-local-insecure.middlewares: gitea-web-redirect
# Local domain secure
traefik.http.routers.gitea-local.rule: Host(`gitea.${LOCAL_DOMAIN}`)
traefik.http.routers.gitea-local.entrypoints: websecure
traefik.http.routers.gitea-local.service: gitea
traefik.http.routers.gitea-local.tls: true
2022-07-28 17:46:12 +00:00
gitea-db:
container_name: gitea-db
image: postgres:14
restart: unless-stopped
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
volumes:
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
networks:
- tipi_main_network