feat(Gitea): Add default value in yml

This commit is contained in:
Simon 2021-03-09 10:41:06 +01:00
parent e86ef49abe
commit 84bda18c6d
4 changed files with 6 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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'

View File

@ -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