2020-03-18 19:55:23 +00:00
|
|
|
services:
|
|
|
|
gitea:
|
|
|
|
image: gitea/gitea:latest
|
|
|
|
environment:
|
|
|
|
- DB_TYPE=postgres
|
|
|
|
- DB_HOST=db:5432
|
|
|
|
- DB_NAME=gitea
|
|
|
|
- DB_USER=gitea
|
|
|
|
- DB_PASSWD=gitea
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- git_data:/data
|
|
|
|
ports:
|
2020-03-23 23:36:46 +00:00
|
|
|
- 3000:3000
|
2020-03-18 19:55:23 +00:00
|
|
|
db:
|
|
|
|
image: postgres:alpine
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=gitea
|
|
|
|
- POSTGRES_PASSWORD=gitea
|
|
|
|
- POSTGRES_DB=gitea
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/postgresql/data
|
2021-04-30 20:29:16 +00:00
|
|
|
expose:
|
|
|
|
- 5432
|
2020-03-18 19:55:23 +00:00
|
|
|
volumes:
|
|
|
|
db_data:
|
|
|
|
git_data:
|
|
|
|
|
|
|
|
|
2021-04-30 20:29:16 +00:00
|
|
|
|