41 lines
793 B
YAML
41 lines
793 B
YAML
services:
|
|
|
|
gitea:
|
|
image: gitea/gitea:1.23
|
|
restart: unless-stopped
|
|
env_file: "priv/env"
|
|
environment:
|
|
- USER_UID=106
|
|
- USER_GID=112
|
|
networks:
|
|
- gitea
|
|
- caddy
|
|
volumes:
|
|
- ./volumes/gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
# allows ssh pushing via locally stored keys
|
|
- /home/git/.ssh:/data/git/.ssh
|
|
# ports:
|
|
# - "127.0.0.1:2222:22"
|
|
# - "3000:3000"
|
|
depends_on:
|
|
- postgres-gitea
|
|
|
|
postgres-gitea:
|
|
image: postgres:17
|
|
restart: always
|
|
env_file: "priv/env"
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- ./volumes/postgres:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
gitea:
|
|
external: false
|
|
caddy:
|
|
external: false
|
|
driver: bridge
|
|
|