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
|
||||
|
||||
TRAEFIK_NETWORK_NAME=kifeart
|
||||
GITEA_IMAGE=gitea/gitea:1.13.2
|
||||
GITEA_CONTAINER_NAME=aetig
|
||||
GITEA_VOLUME_NAME=aetig
|
||||
GITEA_PROTOCOL=https
|
||||
|
|
|
@ -2,8 +2,6 @@ COMPOSE_FILE=../postgres/docker-compose.yml:./docker-compose.yml:./docker-compos
|
|||
|
||||
# APP
|
||||
|
||||
GITEA_IMAGE=gitea/gitea:1.13.2
|
||||
GITEA_CONTAINER_NAME=gitea
|
||||
GITEA_VOLUME_NAME=gitea
|
||||
GITEA_PROTOCOL=http
|
||||
GITEA_DOMAIN=gitea.lan
|
||||
|
|
|
@ -2,15 +2,15 @@ version: "3.8"
|
|||
|
||||
networks:
|
||||
default:
|
||||
name: ${TRAEFIK_NETWORK_NAME}
|
||||
name: ${TRAEFIK_NETWORK_NAME:-traefik}
|
||||
|
||||
services:
|
||||
gitea:
|
||||
labels:
|
||||
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.services.gitea.loadbalancer.server.port: '3000'
|
||||
|
|
|
@ -2,12 +2,12 @@ version: "3.8"
|
|||
|
||||
volumes:
|
||||
gitea:
|
||||
name: ${GITEA_VOLUME_NAME}
|
||||
name: ${GITEA_VOLUME_NAME:-gitea}
|
||||
|
||||
services:
|
||||
gitea:
|
||||
container_name: ${GITEA_CONTAINER_NAME}
|
||||
image: ${GITEA_IMAGE}
|
||||
container_name: ${GITEA_CONTAINER_NAME:-gitea}
|
||||
image: ${GITEA_IMAGE:-gitea/gitea:1.13.2}
|
||||
restart: always
|
||||
environment:
|
||||
# - USER_UID=1000
|
||||
|
|
Loading…
Reference in New Issue