git-server/docker-compose.yml

37 lines
708 B
YAML

version: "3"
services:
forgejo:
image: codeberg.org/forgejo/forgejo:1.21.5-0
container_name: forgejo
environment:
# git user
- USER_UID=1001
- USER_GID=100
restart: always
volumes:
- ./forgejo:/data
- /home/git/.ssh/:/data/git/.ssh
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "2222:22"
networks:
- caddy
soft-serve:
container_name: soft-serve
image: charmcli/soft-serve:v0.7.4
restart: unless-stopped
volumes:
- ./soft/data:/soft-serve
ports:
- 23231:23231
- 23232:23232
- 23233:23233
- 9418:9418
networks:
caddy:
external: true