blob: 3fe10ae3a4e8f12e632e17bbf3d867511582c7c7 (
plain) (
tree)
|
|
version: "3"
services:
cgit:
image: cgit
build:
context: ./cgit/
networks:
- cgitnet
ports:
- "127.0.0.1:8041:80"
- "127.0.0.1:8042:22"
- "8043:443"
restart: unless-stopped
environment:
- PGID=1000
- PUID=1000
volumes:
- ./cgit/cgitrc:/etc/cgitrc:ro
- storage:/home/git/repositories
- ./data/ssh:/etc/ssh
# - ./data/web:/var/www
# - /etc/hosts:/etc/hosts:ro
# - /etc/localtime:/etc/localtime:ro
- ./cgit.conf:/etc/lighttpd/cgit.conf:ro
- /etc/letsencrypt/archive/git.terminaldweller.com/:/etc/certs/:ro
bootstrap:
image: bootstrap
build:
context: ./bootstrap
networks:
- bootstrapnet
volumes:
- storage:/etc/gitrepos/
entrypoint: ["/docker-entrypoint.sh"]
# cap_drop:
# - ALL
healthcheck:
test: exit 1
interval: 1d
timeout: 10s
retries: 1
restart: unless-stopped
networks:
cgitnet:
bootstrapnet:
volumes:
storage:
|