Initial commits
This commit is contained in:
42
gitea.docker-compose.yml
Normal file
42
gitea.docker-compose.yml
Normal file
@ -0,0 +1,42 @@
|
||||
services:
|
||||
server:
|
||||
image: docker.gitea.com/gitea:1.24.0
|
||||
container_name: gitea
|
||||
environment:
|
||||
- USER=git
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=postgres:5432
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=${POSTGRES_USER}
|
||||
- GITEA__database__PASSWD=${POSTGRES_PASS}
|
||||
|
||||
- GITEA__security__SECRET_KEY=${GITEA_SECRET_KEY}
|
||||
- GITEA__security__INTERNAL_TOKEN=${GITEA_INTERNAL_TOKEN}
|
||||
|
||||
- GITEA__server__ROOT_URL=https://git.omukk.dev
|
||||
- GITEA__server__LANDING_PAGE=login
|
||||
|
||||
- GITEA__oauth2_client__ENABLE_AUTO_REGISTRATION=true
|
||||
- GITEA__oauth2_client__USERNAME=preferred_username
|
||||
# - GITEA__service__ENABLE_BASIC_AUTHENTICATION=false
|
||||
# - GITEA__service__ENABLE_PASSWORD_SIGNIN_FORM=false
|
||||
# - GITEA__service__ALLOW_ONLY_EXTERNAL_REGISTRATION=true
|
||||
- GITEA__openid__ENABLE_OPENID_SIGNIN=false
|
||||
restart: always
|
||||
networks:
|
||||
- omukk-network
|
||||
volumes:
|
||||
- ./docker-data/gitea:/data
|
||||
- /home/git/.ssh/:/data/git/.ssh
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "7000:3000"
|
||||
- "127.0.0.1:2222:22"
|
||||
|
||||
networks:
|
||||
omukk-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user