awesome-compose/gitea-postgres/docker-compose.yaml
Javier López Barba 744ed86c55
Add missing expose field to docker compose files (#124)
Signed-off-by: javi <javier@okteto.com>
2021-04-30 22:29:16 +02:00

33 lines
561 B
YAML

version: '3.7'
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: