Update variables

This commit is contained in:
Solal NATHAN 2020-09-22 01:00:06 +02:00
parent 2472608b74
commit e504931efd

View file

@ -3,16 +3,35 @@ version: "3"
services: services:
gitea: gitea:
image: gitea/gitea:latest image: gitea/gitea:latest
# au moment du déployement en prod mettre
# gitea/gitea:1.12.4
# qui est la dernière version stable, non pas la latest
environment: environment:
# Git user (1000 est réserver pour l'utilisateur Aurore)
- USER_UID=1001 - USER_UID=1001
- USER_GID=1001 - USER_GID=1001
# Databse Postreg
- DB_TYPE=postgres - DB_TYPE=postgres
- DB_NAME=gitea - DB_NAME=gitea
- DB_USER=gitea - DB_USER=gitea
- "DB_HOST=${DB_HOST}" - "DB_HOST=${DB_HOST}"
- "DB_PASSWD=${DB_PASSWD}" - "DB_PASSWD=${DB_PASSWD}"
- RUN_MODE=dev
# General settings
- "APP_NAME=Gitea: Service Git d'Aurore"
- RUN_MODE=prod
- DOMAIN=gitea.auro.re - DOMAIN=gitea.auro.re
- SSH_DOMAIN=gitea.auro.re
- SSH_PORT=2222
- "ROOT_URL=https://gitea.auro.re"
# - LFS_START_SERVER=true # Git Large File Storage
# Login settings
- DISABLE_REGISTRATION=true
- ENABLE_OPENID_SIGNIN=false
restart: always restart: always
volumes: volumes:
- ./data:/data - ./data:/data
@ -20,4 +39,4 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- "3000:3000" - "3000:3000"
- "127.0.0.1:2222:22" - "2222:2222"