Merge pull request 'gitea-playground' (#1) from gitea-playground into main
Reviewed-on: #1
This commit is contained in:
@@ -5,17 +5,18 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
|
# Database
|
||||||
- GITEA__database__DB_TYPE=postgres
|
- GITEA__database__DB_TYPE=postgres
|
||||||
- GITEA__database__HOST=db:5432
|
- GITEA__database__HOST=db:5432
|
||||||
- GITEA__database__NAME=gitea
|
- GITEA__database__NAME=gitea
|
||||||
- GITEA__database__USER=gitea
|
- GITEA__database__USER=gitea
|
||||||
- GITEA__database__PASSWD=gitea
|
- GITEA__database__PASSWD=gitea
|
||||||
- GITEA__server__DOMAIN=gitea.forust.xyz
|
#Server
|
||||||
- GITEA__server__ROOT_URL=https://gitea.forust.xyz/
|
- GITEA__server__ROOT_URL=https://gitea.forust.xyz
|
||||||
- GITEA__server__SSH_DOMAIN=gitea.forust.xyz
|
- GITEA__server__SSH_PORT=2221
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- gitea
|
- gitea-db
|
||||||
- traefik-proxy
|
- traefik-proxy
|
||||||
volumes:
|
volumes:
|
||||||
- ./gitea:/data
|
- ./gitea:/data
|
||||||
@@ -25,7 +26,7 @@ services:
|
|||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=traefik-proxy"
|
- "traefik.docker.network=traefik-proxy"
|
||||||
ports:
|
ports:
|
||||||
- "222:22"
|
- "2221:22"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
||||||
@@ -37,7 +38,7 @@ services:
|
|||||||
- POSTGRES_PASSWORD=gitea
|
- POSTGRES_PASSWORD=gitea
|
||||||
- POSTGRES_DB=gitea
|
- POSTGRES_DB=gitea
|
||||||
networks:
|
networks:
|
||||||
- gitea
|
- gitea-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/gitea/postgres:/var/lib/postgresql/data
|
- ./volumes/gitea/postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ services:
|
|||||||
- "--entryPoints.websecure.http.tls=true"
|
- "--entryPoints.websecure.http.tls=true"
|
||||||
- "--entryPoints.web.http.redirections.entryPoint.to=websecure"
|
- "--entryPoints.web.http.redirections.entryPoint.to=websecure"
|
||||||
- "--entryPoints.web.http.redirections.entryPoint.scheme=https"
|
- "--entryPoints.web.http.redirections.entryPoint.scheme=https"
|
||||||
|
- "--entryPoints.ssh.address=:222"
|
||||||
|
|
||||||
# Let's Encrypt STAGING. CURRENTLY USING CF ORIGIN CA INSTEAD
|
# Let's Encrypt STAGING. CURRENTLY USING CF ORIGIN CA INSTEAD
|
||||||
# - "--certificatesresolvers.letsencrypt.acme.email=${EMAIL}"
|
# - "--certificatesresolvers.letsencrypt.acme.email=${EMAIL}"
|
||||||
|
|||||||
@@ -73,6 +73,14 @@ http:
|
|||||||
- security-headers
|
- security-headers
|
||||||
tls: {}
|
tls: {}
|
||||||
|
|
||||||
|
# Gitea SSH
|
||||||
|
gitea-ssh:
|
||||||
|
rule: "HostSNI(`*`)"
|
||||||
|
entryPoints:
|
||||||
|
- ssh
|
||||||
|
service: gitea-ssh
|
||||||
|
tls: {}
|
||||||
|
|
||||||
# Glance (local only)
|
# Glance (local only)
|
||||||
glance:
|
glance:
|
||||||
rule: "Host(`glance.workstation`)"
|
rule: "Host(`glance.workstation`)"
|
||||||
@@ -162,6 +170,13 @@ http:
|
|||||||
servers:
|
servers:
|
||||||
- url: "http://gitea:3000"
|
- url: "http://gitea:3000"
|
||||||
|
|
||||||
|
# Gitea SSH
|
||||||
|
gitea-ssh:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: "ssh://gitea:22"
|
||||||
|
|
||||||
|
|
||||||
serversTransports:
|
serversTransports:
|
||||||
insecureTransport:
|
insecureTransport:
|
||||||
insecureSkipVerify: true
|
insecureSkipVerify: true
|
||||||
|
|||||||
Reference in New Issue
Block a user