42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
gitea:
|
|
image: gitea/gitea:1.21
|
|
container_name: provisioning-gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- GITEA__database__DB_TYPE=sqlite3
|
|
- GITEA__database__PATH=/data/gitea/gitea.db
|
|
- GITEA__server__DOMAIN=localhost
|
|
- GITEA__server__ROOT_URL=http://localhost:3000
|
|
- GITEA__server__HTTP_PORT=3000
|
|
- GITEA__server__SSH_PORT=22
|
|
- GITEA__server__OFFLINE_MODE=false
|
|
- GITEA__security__INSTALL_LOCK=true
|
|
- GITEA__service__DISABLE_REGISTRATION=false
|
|
- GITEA__service__REQUIRE_SIGNIN_VIEW=false
|
|
- GITEA__repository__DEFAULT_BRANCH=main
|
|
- GITEA__repository__ENABLE_PUSH_CREATE_USER=true
|
|
- GITEA__repository__ENABLE_PUSH_CREATE_ORG=true
|
|
ports:
|
|
- "3000:3000"
|
|
- "222:22"
|
|
volumes:
|
|
- gitea-data:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
restart: unless-stopped
|
|
networks:
|
|
- provisioning
|
|
|
|
networks:
|
|
provisioning:
|
|
name: provisioning-network
|
|
driver: bridge
|
|
|
|
volumes:
|
|
gitea-data:
|
|
name: provisioning-gitea-data
|