38 lines
834 B
YAML
Executable File
38 lines
834 B
YAML
Executable File
version: "2.1"
|
|
services:
|
|
gitea:
|
|
image: gitea/gitea:latest
|
|
container_name: git
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- DB_TYPE=postgres
|
|
- DB_HOST=gitea-db:5432
|
|
- DB_NAME=gitea
|
|
- DB_USER=gitea
|
|
- DB_PASSWD=gitea
|
|
restart: always
|
|
#networks:
|
|
# - gitea
|
|
volumes:
|
|
- /Red-Vol/Media/Containers/gitea/data:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- 3000:3000
|
|
- "64278:22"
|
|
depends_on:
|
|
- gitea-db
|
|
|
|
gitea-db:
|
|
image: postgres:alpine
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=gitea
|
|
- POSTGRES_PASSWORD=gitea
|
|
- POSTGRES_DB=gitea
|
|
#networks:
|
|
# - gitea
|
|
volumes:
|
|
- /Red-Vol/Media/Containers/gitea/postgresql:/var/lib/postgresql/data
|