docker-gitea/docker-compose.yml

43 lines
1 KiB
YAML
Raw Normal View History

2020-09-16 13:16:51 +02:00
version: "3"
services:
gitea:
image: gitea/gitea:latest
2020-09-22 01:00:06 +02:00
# au moment du déployement en prod mettre
# gitea/gitea:1.12.4
# qui est la dernière version stable, non pas la latest
2020-09-16 13:16:51 +02:00
environment:
2020-09-22 01:00:06 +02:00
# Git user (1000 est réserver pour l'utilisateur Aurore)
2020-09-16 20:15:46 +02:00
- USER_UID=1001
- USER_GID=1001
2020-09-22 01:00:06 +02:00
# Databse Postreg
2020-09-16 13:16:51 +02:00
- DB_TYPE=postgres
- DB_NAME=gitea
- DB_USER=gitea
- "DB_HOST=${DB_HOST}"
- "DB_PASSWD=${DB_PASSWD}"
2020-09-22 01:00:06 +02:00
# General settings
- "APP_NAME=Gitea: Service Git d'Aurore"
- RUN_MODE=prod
2020-09-16 13:16:51 +02:00
- DOMAIN=gitea.auro.re
2020-09-22 01:00:06 +02:00
- 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
2020-09-16 13:16:51 +02:00
restart: always
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
2020-09-22 01:00:06 +02:00
- "2222:2222"