Added a temporary gitea instance, eventually to replace
This commit is contained in:
parent
3482d53b9a
commit
547a811393
|
@ -1,2 +1,4 @@
|
|||
.env
|
||||
htpasswd
|
||||
.env*
|
||||
!.env*.sample
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
PORT=8000
|
|
@ -0,0 +1,3 @@
|
|||
POSTGRES_USER=gitea
|
||||
POSTGRES_PASSWORD=gitea
|
||||
POSTGRES_DB=gitea
|
|
@ -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
|
|
@ -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:
|
Loading…
Reference in New Issue