dotfiles/docker/forgejo/docker-compose.yaml

37 lines
866 B
YAML

volumes:
data: {}
runner: {}
services:
forgejo:
image: git.korhonen.cc/functionalhacker/forgejo-asciidoc
container_name: forgejo
environment:
- USER_UID=1000
- USER_GID=1000
restart: unless-stopped
networks:
- postgres
- proxy
ports:
- '2882:22'
volumes:
- data:/data
- /etc/localtime:/etc/localtime:ro
runner:
image: code.forgejo.org/forgejo/runner:3.5.1
container_name: forgejo-runner
user: root:root
volumes:
- runner:/data
- ./runner.yaml:/data/config.yaml
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
environment:
- SOCKFILE=/var/run/docker.sock
restart: unless-stopped
command: forgejo-runner daemon -c /data/config.yaml
networks:
postgres:
external: true
proxy:
external: true