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

View File

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

View File

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

View File

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