Add files
This commit is contained in:
parent
ce5e4cf274
commit
03df7b1851
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.env
|
||||||
|
data/
|
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:13
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=gitea
|
||||||
|
- POSTGRES_PASSWORD
|
||||||
|
- POSTGRES_DB=giteadb
|
||||||
|
volumes:
|
||||||
|
- ./data/postgres:/var/lib/postgresql/data/
|
||||||
|
- ./data/progs:/progs
|
||||||
|
restart: always
|
||||||
|
healthcheck:
|
||||||
|
test: pg_isready -U gitea -d giteadb
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
|
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea:1.15
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./data/gitea:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:81:3000
|
||||||
|
- 22:2222
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
Loading…
Reference in New Issue
Block a user