repos / git-pr

a self-hosted git collaboration server
git clone https://github.com/picosh/git-pr.git

jolheiser  ·  2025-04-05

docker-compose.prod.yml

 1services:
 2  caddy:
 3    image: ghcr.io/picosh/pico/caddy:latest
 4    restart: always
 5    networks:
 6      - git
 7    env_file:
 8      - .env.prod
 9    environment:
10      APP_DOMAIN: pr.pico.sh
11      APP_EMAIL: hello@pico.sh
12    volumes:
13      - ./Caddyfile:/etc/caddy/Caddyfile
14      - ./data/git-caddy/data:/data
15      - ./data/git-caddy/config:/config
16    ports:
17      - "${GITPR_HTTPS_V4:-443}:443"
18      - "${GITPR_HTTP_V4:-80}:80"
19      - "${GITPR_HTTPS_V6:-[::1]:443}:443"
20      - "${GITPR_HTTP_V6:-[::1]:80}:80"
21  web:
22    command: "/app/git-web --config ${GITPR_CONFIG_PATH}"
23    networks:
24      git:
25        aliases:
26          - web
27    env_file:
28      - .env.prod
29  ssh:
30    command: "/app/git-ssh --config ${GITPR_CONFIG_PATH}"
31    networks:
32      git:
33        aliases:
34          - ssh
35    env_file:
36      - .env.prod
37    ports:
38      - "${GITPR_SSH_V4:-22}:2222"
39      - "${GITPR_SSH_V6:-[::1]:22}:2222"
40networks:
41  git:
42    enable_ipv6: true
43    driver_opts:
44      com.docker.network.bridge.name: pr
45    ipam:
46      config:
47        - subnet: 172.28.0.0/16
48        - subnet: fd00:dead:beef:28::/112