repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
35dc243
parent
8987411
author
Antonio Mika
date
2022-08-18 02:29:26 +0000 UTC
Added imgs docker deployment data
4 files changed,  +90, -1
M .env.example
+2, -1
 1@@ -68,9 +68,10 @@ IMGS_HOST=
 2 IMGS_SSH_PORT=2222
 3 IMGS_WEB_PORT=3000
 4 IMGS_PROM_PORT=9222
 5-IMGS_DOMAIN=imgs.dev.pico.sh:3002
 6+IMGS_DOMAIN=imgs.dev.pico.sh:3003
 7 IMGS_EMAIL=hello@pico.sh
 8 IMGS_SUBDOMAINS=1
 9 IMGS_CUSTOMDOMAINS=1
10 IMGS_PROTOCOL=http
11+IMGS_ALLOW_REGISTER=1
12 IMGS_STORAGE_DIR=.storage
M docker-compose.override.yml
+23, -0
 1@@ -65,3 +65,26 @@ services:
 2       - ./data/prose-ssh/data:/app/ssh_data
 3     ports:
 4       - "2222:2222"
 5+  imgs-web:
 6+    build:
 7+      args:
 8+        APP: imgs
 9+      target: release-web
10+    env_file:
11+      - .env.example
12+    volumes:
13+      - ./data/imgs-storage/data:/app/.storage
14+    ports:
15+      - "3003:3000"
16+  imgs-ssh:
17+    build:
18+      args:
19+        APP: imgs
20+      target: release-ssh
21+    env_file:
22+      - .env.example
23+    volumes:
24+      - ./data/imgs-storage/data:/app/.storage
25+      - ./data/imgs-ssh/data:/app/ssh_data
26+    ports:
27+      - "2223:2222"
M docker-compose.prod.yml
+51, -0
 1@@ -133,6 +133,51 @@ services:
 2     ports:
 3       - "${PROSE_SSH_V4:-22}:2222"
 4       - "${PROSE_SSH_V6:-[::1]:22}:2222"
 5+  imgs-caddy:
 6+    image: neurosnap/pico-caddy:latest
 7+    restart: always
 8+    networks:
 9+      - imgs
10+    env_file:
11+      - .env.prod
12+    environment:
13+      APP_DOMAIN: ${IMGS_DOMAIN:-imgs.sh}
14+      APP_EMAIL: ${IMGS_EMAIL:-hello@pico.sh}
15+    volumes:
16+      - ./caddy/Caddyfile:/etc/caddy/Caddyfile
17+      - ./data/imgs-caddy/data:/data
18+      - ./data/imgs-caddy/config:/config
19+    ports:
20+      - "${IMGS_HTTPS_V4:-443}:443"
21+      - "${IMGS_HTTP_V4:-80}:80"
22+      - "${IMGS_HTTPS_V6:-[::1]:443}:443"
23+      - "${IMGS_HTTP_V6:-[::1]:80}:80"
24+    profiles:
25+      - imgs
26+      - caddy
27+      - all
28+  imgs-web:
29+    networks:
30+      imgs:
31+        aliases:
32+          - web
33+    env_file:
34+      - .env.prod
35+    volumes:
36+      - ./data/imgs-storage/data:/app/.storage
37+  imgs-ssh:
38+    networks:
39+      imgs:
40+        aliases:
41+          - ssh
42+    env_file:
43+      - .env.prod
44+    volumes:
45+      - ./data/imgs-storage/data:/app/.storage
46+      - ./data/imgs-ssh/data:/app/ssh_data
47+    ports:
48+      - "${IMGS_SSH_V4:-22}:2222"
49+      - "${IMGS_SSH_V6:-[::1]:22}:2222"
50 
51 networks:
52   prose:
53@@ -153,3 +198,9 @@ networks:
54     ipam:
55       config:
56         - subnet: 172.20.0.0/16
57+  imgs:
58+    driver_opts:
59+      com.docker.network.bridge.name: imgs
60+    ipam:
61+      config:
62+        - subnet: 172.21.0.0/16
M docker-compose.yml
+14, -0
 1@@ -48,3 +48,17 @@ services:
 2       - prose
 3       - services
 4       - all
 5+  imgs-web:
 6+    image: neurosnap/imgs-web:latest
 7+    restart: always
 8+    profiles:
 9+      - imgs
10+      - services
11+      - all
12+  imgs-ssh:
13+    image: neurosnap/imgs-ssh:latest
14+    restart: always
15+    profiles:
16+      - imgs
17+      - services
18+      - all