-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.prod.yml
46 lines (46 loc) · 1.01 KB
/
docker-compose.prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
caddy:
image: ghcr.io/picosh/pico/caddy:latest
restart: always
networks:
- git
env_file:
- .env.prod
environment:
APP_DOMAIN: pr.pico.sh
APP_EMAIL: [email protected]
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./data/git-caddy/data:/data
- ./data/git-caddy/config:/config
ports:
- "${GITPR_HTTPS_V4:-443}:443"
- "${GITPR_HTTP_V4:-80}:80"
- "${GITPR_HTTPS_V6:-[::1]:443}:443"
- "${GITPR_HTTP_V6:-[::1]:80}:80"
web:
command: "/app/web --config ${GITPR_CONFIG_PATH}"
networks:
git:
aliases:
- web
env_file:
- .env.prod
ssh:
command: "/app/ssh --config ${GITPR_CONFIG_PATH}"
networks:
git:
aliases:
- ssh
env_file:
- .env.prod
ports:
- "${GITPR_SSH_V4:-22}:2222"
- "${GITPR_SSH_V6:-[::1]:22}:2222"
networks:
git:
driver_opts:
com.docker.network.bridge.name: pr
ipam:
config:
- subnet: 172.25.0.0/16