mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 02:38:07 +02:00
Add gitea-postgres sample
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
parent
63709d14e7
commit
1138b5d387
3 changed files with 99 additions and 0 deletions
32
gitea-postgres/docker-compose.yaml
Normal file
32
gitea-postgres/docker-compose.yaml
Normal file
|
@ -0,0 +1,32 @@
|
|||
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:
|
||||
- 80:3000
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: postgres:alpine
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=gitea
|
||||
- POSTGRES_DB=gitea
|
||||
restart: always
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
volumes:
|
||||
db_data:
|
||||
git_data:
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue