2056ab2f01
https://github.com/compose-spec/compose-spec/blob/master/spec.md#version-top-level-element Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
32 lines
546 B
YAML
32 lines
546 B
YAML
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:
|
|
- 3000:3000
|
|
db:
|
|
image: postgres:alpine
|
|
environment:
|
|
- POSTGRES_USER=gitea
|
|
- POSTGRES_PASSWORD=gitea
|
|
- POSTGRES_DB=gitea
|
|
restart: always
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
expose:
|
|
- 5432
|
|
volumes:
|
|
db_data:
|
|
git_data:
|
|
|
|
|
|
|