All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 24m47s
45 lines
973 B
YAML
45 lines
973 B
YAML
version: "3"
|
|
|
|
networks:
|
|
gitea:
|
|
|
|
services:
|
|
gitea:
|
|
image: docker.gitea.com/gitea:1.23.7
|
|
container_name: gitea
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- GITEA__database__DB_TYPE=postgres
|
|
- GITEA__database__HOST=postgres:5432
|
|
- GITEA__database__NAME=gitea
|
|
- GITEA__database__USER=gitea
|
|
- GITEA__database__PASSWD=gitea
|
|
restart: always
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- /home/gitea/gitea:/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "3000:3000"
|
|
- "2222:22"
|
|
depends_on:
|
|
- postgres
|
|
security_opt:
|
|
- label=disable
|
|
|
|
postgres:
|
|
image: docker.io/library/postgres:15
|
|
container_name: postgres
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=gitea
|
|
- POSTGRES_PASSWORD=gitea
|
|
- POSTGRES_DB=gitea
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- /home/gitea/postgres:/var/lib/postgresql/data
|
|
security_opt:
|
|
- label=disable |