Adopt Compose v2 (#240)
* Adopt Compose v2 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
31
gitea-postgres/compose.yaml
Normal file
31
gitea-postgres/compose.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
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:
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user