- commit
- 9eb5124
- parent
- 677655a
- author
- Eric Bower
- date
- 2024-09-04 02:45:19 +0000 UTC
chore(pubsub): docker compose config
3 files changed,
+82,
-0
+20,
-0
1@@ -45,6 +45,26 @@ services:
2 - ./data/pastes-ssh/data:/app/ssh_data
3 ports:
4 - "2221:2222"
5+ pubsub-web:
6+ build:
7+ args:
8+ APP: pubsub
9+ target: release-web
10+ env_file:
11+ - .env.example
12+ ports:
13+ - "3001:3000"
14+ pubsub-ssh:
15+ build:
16+ args:
17+ APP:pubsub
18+ target: release-ssh
19+ env_file:
20+ - .env.example
21+ volumes:
22+ - ./data/pubsub-ssh/data:/app/ssh_data
23+ ports:
24+ - "2221:2222"
25 prose-web:
26 build:
27 args:
+48,
-0
1@@ -86,6 +86,48 @@ services:
2 ports:
3 - "${PASTES_SSH_V4:-22}:2222"
4 - "${PASTES_SSH_V6:-[::1]:22}:2222"
5+ pubsub-caddy:
6+ image: ghcr.io/picosh/pico/caddy:latest
7+ restart: always
8+ networks:
9+ - pubsub
10+ env_file:
11+ - .env.prod
12+ environment:
13+ APP_DOMAIN: ${PUBSUB_DOMAIN:-pubsub.sh}
14+ APP_EMAIL: ${PUBSUB_EMAIL:-hello@pico.sh}
15+ volumes:
16+ - ${PUBSUB_CADDYFILE}:/etc/caddy/Caddyfile
17+ - ./data/pubsub-caddy/data:/data
18+ - ./data/pubsub-caddy/config:/config
19+ ports:
20+ - "${PUBSUB_HTTPS_V4:-443}:443"
21+ - "${PUBSUB_HTTP_V4:-80}:80"
22+ - "${PUBSUB_HTTPS_V6:-[::1]:443}:443"
23+ - "${PUBSUB_HTTP_V6:-[::1]:80}:80"
24+ profiles:
25+ - pubsub
26+ - caddy
27+ - all
28+ pubsub-web:
29+ networks:
30+ pubsub:
31+ aliases:
32+ - web
33+ env_file:
34+ - .env.prod
35+ pubsub-ssh:
36+ networks:
37+ pubsub:
38+ aliases:
39+ - ssh
40+ env_file:
41+ - .env.prod
42+ volumes:
43+ - ./data/pubsub-ssh/data:/app/ssh_data
44+ ports:
45+ - "${PUBSUB_SSH_V4:-22}:2222"
46+ - "${PUBSUB_SSH_V6:-[::1]:22}:2222"
47 prose-caddy:
48 image: ghcr.io/picosh/pico/caddy:latest
49 restart: always
50@@ -344,3 +386,9 @@ networks:
51 ipam:
52 config:
53 - subnet: 172.25.0.0/16
54+ pubsub:
55+ driver_opts:
56+ com.docker.network.bridge.name: pubsub
57+ ipam:
58+ config:
59+ - subnet: 172.27.0.0/16
+14,
-0
1@@ -43,6 +43,20 @@ services:
2 - pastes
3 - services
4 - all
5+ pubsub-web:
6+ image: ghcr.io/picosh/pico/pubsub-web:latest
7+ restart: always
8+ profiles:
9+ - pubsub
10+ - services
11+ - all
12+ pubsub-ssh:
13+ image: ghcr.io/picosh/pico/pubsub-ssh:latest
14+ restart: always
15+ profiles:
16+ - pubsub
17+ - services
18+ - all
19 prose-web:
20 image: ghcr.io/picosh/pico/prose-web:latest
21 restart: always