feat(Gitea): Add default value in yml
This commit is contained in:
parent
e86ef49abe
commit
84bda18c6d
|
@ -7,7 +7,6 @@ COMPOSE_FILE=../../postgres/docker-compose.yml:../../gitea/docker-compose.yml:..
|
||||||
# APP
|
# APP
|
||||||
|
|
||||||
TRAEFIK_NETWORK_NAME=kifeart
|
TRAEFIK_NETWORK_NAME=kifeart
|
||||||
GITEA_IMAGE=gitea/gitea:1.13.2
|
|
||||||
GITEA_CONTAINER_NAME=aetig
|
GITEA_CONTAINER_NAME=aetig
|
||||||
GITEA_VOLUME_NAME=aetig
|
GITEA_VOLUME_NAME=aetig
|
||||||
GITEA_PROTOCOL=https
|
GITEA_PROTOCOL=https
|
||||||
|
|
|
@ -2,8 +2,6 @@ COMPOSE_FILE=../postgres/docker-compose.yml:./docker-compose.yml:./docker-compos
|
||||||
|
|
||||||
# APP
|
# APP
|
||||||
|
|
||||||
GITEA_IMAGE=gitea/gitea:1.13.2
|
|
||||||
GITEA_CONTAINER_NAME=gitea
|
|
||||||
GITEA_VOLUME_NAME=gitea
|
GITEA_VOLUME_NAME=gitea
|
||||||
GITEA_PROTOCOL=http
|
GITEA_PROTOCOL=http
|
||||||
GITEA_DOMAIN=gitea.lan
|
GITEA_DOMAIN=gitea.lan
|
||||||
|
|
|
@ -2,15 +2,15 @@ version: "3.8"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
name: ${TRAEFIK_NETWORK_NAME}
|
name: ${TRAEFIK_NETWORK_NAME:-traefik}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gitea:
|
gitea:
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: 'true'
|
traefik.enable: 'true'
|
||||||
traefik.docker.network: ${TRAEFIK_NETWORK_NAME}
|
traefik.docker.network: ${TRAEFIK_NETWORK_NAME:-traefik}
|
||||||
|
|
||||||
traefik.http.routers.gitea.rule: 'Host(`${GITEA_DOMAIN}`)'
|
traefik.http.routers.gitea.rule: 'Host(`${GITEA_DOMAIN:?err}`)'
|
||||||
traefik.http.routers.gitea.entrypoints: 'web'
|
traefik.http.routers.gitea.entrypoints: 'web'
|
||||||
|
|
||||||
traefik.http.services.gitea.loadbalancer.server.port: '3000'
|
traefik.http.services.gitea.loadbalancer.server.port: '3000'
|
||||||
|
|
|
@ -2,12 +2,12 @@ version: "3.8"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
gitea:
|
gitea:
|
||||||
name: ${GITEA_VOLUME_NAME}
|
name: ${GITEA_VOLUME_NAME:-gitea}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gitea:
|
gitea:
|
||||||
container_name: ${GITEA_CONTAINER_NAME}
|
container_name: ${GITEA_CONTAINER_NAME:-gitea}
|
||||||
image: ${GITEA_IMAGE}
|
image: ${GITEA_IMAGE:-gitea/gitea:1.13.2}
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
# - USER_UID=1000
|
# - USER_UID=1000
|
||||||
|
|
Loading…
Reference in New Issue