mirror of
https://github.com/fruworg/infrastructure.git
synced 2025-06-20 03:50:28 +03:00
add some files
This commit is contained in:
27
compose/gitea/docker-compose.yml
Normal file
27
compose/gitea/docker-compose.yml
Normal file
@ -0,0 +1,27 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
gitea:
|
||||
hostname: gitea
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
restart: always
|
||||
networks:
|
||||
- default
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- 127.0.0.1:50005:3000
|
||||
- 127.0.0.1:50006:22
|
||||
env_file:
|
||||
- gitea.env
|
||||
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 172.27.27.0/24
|
9
compose/gitea/gitea.env
Normal file
9
compose/gitea/gitea.env
Normal file
@ -0,0 +1,9 @@
|
||||
USER_UID=1000
|
||||
USER_GID=1000
|
||||
GITEA__database__DB_TYPE=postgres
|
||||
GITEA__database__HOST=git.fruw.org:5432
|
||||
GITEA__database__NAME=gitea
|
||||
GITEA__database__USER=gitea
|
||||
GITEA__database__PASSWD=$GITEA_DB_PASSWORD
|
||||
DISABLE_REGISTRATION=true
|
||||
ENABLE_OPENID_SIGNIN=false
|
Reference in New Issue
Block a user