添加 'gitbucket'
This commit is contained in:
parent
14e7f7b1a9
commit
a99cbd7086
1 changed files with 24 additions and 0 deletions
24
gitbucket
Normal file
24
gitbucket
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
version: '2.1'
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres:15-alpine
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=git-pass
|
||||||
|
- POSTGRES_USER=git
|
||||||
|
- POSTGRES_DB=git
|
||||||
|
volumes:
|
||||||
|
- ./postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
git:
|
||||||
|
image: gitbucket/gitbucket
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- GITBUCKET_DB_USER=git
|
||||||
|
- GITBUCKET_DB_PASSWORD=git-pass
|
||||||
|
- GITBUCKET_DB_URL=jdbc:postgresql://db/git
|
||||||
|
volumes:
|
||||||
|
- ./data:/gitbucket
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:2080:8080"
|
||||||
|
- "29418:29418"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue