Added a temporary gitea instance, eventually to replace

This commit is contained in:
Ash Leece 2020-08-20 12:55:47 +00:00
parent 3482d53b9a
commit 547a811393
5 changed files with 47 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
.env
htpasswd
.env*
!.env*.sample

1
gitea-new/.env Normal file
View File

@ -0,0 +1 @@
PORT=8000

View File

@ -0,0 +1,3 @@
POSTGRES_USER=gitea
POSTGRES_PASSWORD=gitea
POSTGRES_DB=gitea

View File

@ -0,0 +1,7 @@
USER_UID=1000
USER_GID=1000
DB_TYPE=postgres
DB_HOST=db:5432
DB_NAME=gitea
DB_USER=gitea
DB_PASSWD=gitea

View File

@ -0,0 +1,34 @@
version: "2"
networks:
gitea:
external: false
services:
server:
image: gitea/gitea:latest
env_file: .env.gitea
restart: always
networks:
- gitea
volumes:
- gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- ${PORT}
depends_on:
- db
db:
image: postgres:latest
restart: always
env_file: .env.db
networks:
- gitea
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
gitea: