- commit
- 0ade815
- parent
- 86d3c64
- author
- Eric Bower
- date
- 2024-05-21 14:58:29 -0400 EDT
refactor: compose files
2 files changed,
+43,
-43
+41,
-0
1@@ -0,0 +1,41 @@
2+services:
3+ caddy:
4+ image: ghcr.io/picosh/pico/caddy:latest
5+ restart: always
6+ networks:
7+ - git
8+ env_file:
9+ - .env.prod
10+ environment:
11+ APP_DOMAIN: pr.pico.sh
12+ APP_EMAIL: hello@pico.sh
13+ volumes:
14+ - ./Caddyfile:/etc/caddy/Caddyfile
15+ - ./data/git-caddy/data:/data
16+ - ./data/git-caddy/config:/config
17+ ports:
18+ - "${GIT_HTTPS_V4:-443}:443"
19+ - "${GIT_HTTP_V4:-80}:80"
20+ - "${GIT_HTTPS_V6:-[::1]:443}:443"
21+ - "${GIT_HTTP_V6:-[::1]:80}:80"
22+ web:
23+ networks:
24+ git:
25+ aliases:
26+ - web
27+ env_file:
28+ - .env.prod
29+ ssh:
30+ networks:
31+ git:
32+ aliases:
33+ - ssh
34+ env_file:
35+ - .env.prod
36+networks:
37+ git:
38+ driver_opts:
39+ com.docker.network.bridge.name: pr
40+ ipam:
41+ config:
42+ - subnet: 172.25.0.0/16
+2,
-43
1@@ -1,52 +1,11 @@
2 services:
3- caddy:
4- image: ghcr.io/picosh/pico/caddy:latest
5- restart: always
6- networks:
7- - git
8- env_file:
9- - .env.prod
10- environment:
11- APP_DOMAIN: pr.pico.sh
12- APP_EMAIL: hello@pico.sh
13- volumes:
14- - ./Caddyfile:/etc/caddy/Caddyfile
15- - ./data/git-caddy/data:/data
16- - ./data/git-caddy/config:/config
17- ports:
18- - "${GIT_HTTPS_V4:-443}:443"
19- - "${GIT_HTTP_V4:-80}:80"
20- - "${GIT_HTTPS_V6:-[::1]:443}:443"
21- - "${GIT_HTTP_V6:-[::1]:80}:80"
22 web:
23 image: ghcr.io/picosh/pico/git-web:latest
24 restart: always
25- networks:
26- git:
27- aliases:
28- - web
29 volumes:
30- - ./data/git-pr/data:/app/ssh_data
31- env_file:
32- - .env.prod
33+ - ./data/git-pr:/app/ssh_data
34 ssh:
35 image: ghcr.io/picosh/pico/git-ssh:latest
36 restart: always
37- networks:
38- git:
39- aliases:
40- - ssh
41- env_file:
42- - .env.prod
43 volumes:
44- - ./data/git-pr/data:/app/ssh_data
45- ports:
46- - "${GIT_SSH_V4:-22}:2222"
47- - "${GIT_SSH_V6:-[::1]:22}:2222"
48-networks:
49- git:
50- driver_opts:
51- com.docker.network.bridge.name: pr
52- ipam:
53- config:
54- - subnet: 172.25.0.0/16
55+ - ./data/git-pr:/app/ssh_data