repos / pico

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

commit
ce404cd
parent
5e27647
author
Eric Bower
date
2024-11-20 04:59:03 +0000 UTC
chore: caddy logs to pipe
2 files changed,  +29, -0
M docker-compose.prod.yml
+15, -0
 1@@ -31,6 +31,11 @@ services:
 2       - .env.prod
 3     volumes:
 4       - ./data/minio-data:/data
 5+  pipemgr:
 6+    env_file:
 7+      - .env.prod
 8+    volumes:
 9+      - ./data/pipemgr/data/term_info_ed25519:/key:ro
10   registry:
11     env_file:
12       - .env.prod
13@@ -146,6 +151,11 @@ services:
14       - ${PROSE_CADDYFILE}:/etc/caddy/Caddyfile
15       - ./data/prose-caddy/data:/data
16       - ./data/prose-caddy/config:/config
17+    labels:
18+      pipemgr.enable: true
19+    depends_on:
20+      pipemgr:
21+        condition: service_healthy
22     ports:
23       - "${PROSE_HTTPS_V4:-443}:443"
24       - "${PROSE_HTTP_V4:-80}:80"
25@@ -242,6 +252,11 @@ services:
26       - "${PGS_HTTP_V4:-80}:80"
27       - "${PGS_HTTPS_V6:-[::1]:443}:443"
28       - "${PGS_HTTP_V6:-[::1]:80}:80"
29+    labels:
30+      pipemgr.enable: true
31+    depends_on:
32+      pipemgr:
33+        condition: service_healthy
34     profiles:
35       - pgs
36       - caddy
M docker-compose.yml
+14, -0
 1@@ -29,6 +29,20 @@ services:
 2     profiles:
 3       - db
 4       - all
 5+  pipemgr:
 6+    image: ghcr.io/picosh/pipemgr:latest
 7+    restart: always
 8+    volumes:
 9+      - /var/run/docker.sock:/var/run/docker.sock:ro
10+    healthcheck:
11+      test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
12+      interval: 2s
13+      timeout: 5s
14+      retries: 5
15+      start_period: 1s
16+    profiles:
17+      - all
18+      - log
19   pastes-web:
20     image: ghcr.io/picosh/pico/pastes-web:latest
21     restart: always