1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/gitea/docker-compose.yml

35 lines
661 B
YAML
Raw Normal View History

2021-07-07 08:46:12 +02:00
version: "3.8"
2019-10-01 07:46:26 +02:00
services:
server:
image: gitea/gitea
ports:
- "2222:22"
- "3000:3000"
volumes:
- ./data/gitea:/data
environment:
- USER_UID=1000
- USER_GID=1000
- DB_TYPE=postgres
- DB_HOST=postgres:5432
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=gitea
depends_on:
- postgres
2021-07-07 08:46:12 +02:00
restart: unless-stopped
2019-10-01 07:46:26 +02:00
postgres:
2021-07-07 08:46:12 +02:00
image: postgres:13-alpine
2019-10-01 07:46:26 +02:00
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
2021-07-07 08:46:12 +02:00
restart: unless-stopped