41 lines
846 B
YAML
41 lines
846 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
|
|
# need to expose 2222 over local host for ssh agent forwarding
|
|
ports:
|
|
- "127.0.0.1:2222:22"
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:14
|
|
restart: unless-stopped
|
|
env_file: "priv/env"
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- ./volumes/postgres:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
gitea:
|
|
external: false
|
|
caddy:
|
|
external: true
|
|
name: caddy_caddy
|
|
driver: bridge
|