fix: update Gitea and PostgreSQL environment variables for consistency
This commit is contained in:
+7
-7
@@ -8,9 +8,9 @@ services:
|
|||||||
# Database
|
# Database
|
||||||
- GITEA__database__DB_TYPE=postgres
|
- GITEA__database__DB_TYPE=postgres
|
||||||
- GITEA__database__HOST=db:5432
|
- GITEA__database__HOST=db:5432
|
||||||
- GITEA__database__USER=${GITEA_POSTGRES_USER:-gitea}
|
- GITEA__database__USER=gitea
|
||||||
- GITEA__database__PASSWD=${GITEA_POSTGRES_PASSWORD:-gitea}
|
- GITEA__database__PASSWD=gitea
|
||||||
- GITEA__database__NAME=${GITEA_POSTGRES_DB:-gitea}
|
- GITEA__database__NAME=gitea
|
||||||
#Server
|
#Server
|
||||||
- GITEA__server__ROOT_URL=https://gitea.forust.xyz
|
- GITEA__server__ROOT_URL=https://gitea.forust.xyz
|
||||||
- GITEA__server__SSH_PORT=2221
|
- GITEA__server__SSH_PORT=2221
|
||||||
@@ -34,13 +34,13 @@ services:
|
|||||||
image: docker.io/library/postgres:14
|
image: docker.io/library/postgres:14
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=${GITEA_POSTGRES_USER:-gitea}
|
- POSTGRES_USER=gitea
|
||||||
- POSTGRES_PASSWORD=${GITEA_POSTGRES_PASSWORD:-gitea}
|
- POSTGRES_PASSWORD=gitea
|
||||||
- POSTGRES_DB=${GITEA_POSTGRES_DB:-gitea}
|
- POSTGRES_DB=gitea
|
||||||
networks:
|
networks:
|
||||||
- gitea-db
|
- gitea-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./gitea-db:/var/lib/postgresql/data
|
- ./gitea-db/:/var/lib/postgresql/data
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
gitea-db:
|
gitea-db:
|
||||||
|
|||||||
@@ -21,7 +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"
|
- "--entryPoints.ssh.address=:2221"
|
||||||
|
|
||||||
# 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}"
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ http:
|
|||||||
rule: "Host(`gitea.forust.xyz`)"
|
rule: "Host(`gitea.forust.xyz`)"
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- websecure
|
- websecure
|
||||||
|
- ssh
|
||||||
service: gitea
|
service: gitea
|
||||||
middlewares:
|
middlewares:
|
||||||
- security-headers
|
- security-headers
|
||||||
@@ -78,7 +79,7 @@ http:
|
|||||||
rule: "HostSNI(`*`)"
|
rule: "HostSNI(`*`)"
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- ssh
|
- ssh
|
||||||
service: gitea-ssh
|
service: gitea
|
||||||
tls: {}
|
tls: {}
|
||||||
|
|
||||||
# Glance (local only)
|
# Glance (local only)
|
||||||
@@ -163,7 +164,7 @@ http:
|
|||||||
loadBalancer:
|
loadBalancer:
|
||||||
servers:
|
servers:
|
||||||
- url: "http://n8n:5678"
|
- url: "http://n8n:5678"
|
||||||
|
|
||||||
# Gitea
|
# Gitea
|
||||||
gitea:
|
gitea:
|
||||||
loadBalancer:
|
loadBalancer:
|
||||||
|
|||||||
Reference in New Issue
Block a user