@or3/cloud 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ {$OR3_PUBLIC_DOMAIN} {
2
+ encode zstd gzip
3
+ reverse_proxy or3:3000 {
4
+ # Preserve incremental SSE/chat output instead of buffering it at the proxy.
5
+ flush_interval -1
6
+ }
7
+ }
@@ -0,0 +1,23 @@
1
+ services:
2
+ caddy:
3
+ image: caddy:2.10-alpine
4
+ depends_on:
5
+ or3:
6
+ condition: service_healthy
7
+ environment:
8
+ OR3_PUBLIC_DOMAIN: ${OR3_PUBLIC_DOMAIN}
9
+ ports:
10
+ - "80:80"
11
+ - "443:443"
12
+ - "443:443/udp"
13
+ volumes:
14
+ - ./Caddyfile:/etc/caddy/Caddyfile:ro
15
+ - caddy-data:/data
16
+ - caddy-config:/config
17
+ restart: unless-stopped
18
+
19
+ volumes:
20
+ caddy-data:
21
+ name: ${OR3_CADDY_DATA_VOLUME}
22
+ caddy-config:
23
+ name: ${OR3_CADDY_CONFIG_VOLUME}
@@ -0,0 +1,34 @@
1
+ name: ${OR3_COMPOSE_PROJECT}
2
+
3
+ services:
4
+ or3:
5
+ image: ${OR3_IMAGE}
6
+ env_file:
7
+ - .env
8
+ environment:
9
+ HOST: 0.0.0.0
10
+ PORT: 3000
11
+ OR3_BASIC_AUTH_DB_PATH: /data/auth.sqlite
12
+ OR3_SQLITE_DB_PATH: /data/sync.sqlite
13
+ OR3_STORAGE_FS_ROOT: /data/storage
14
+ OR3_EXTENSIONS_ROOT: /data/extensions
15
+ OR3_ADMIN_DATA_DIR: /data/admin
16
+ ports:
17
+ - "127.0.0.1:${OR3_PORT}:3000"
18
+ volumes:
19
+ - or3-data:/data
20
+ restart: unless-stopped
21
+ healthcheck:
22
+ test:
23
+ - CMD
24
+ - node
25
+ - -e
26
+ - "fetch('http://127.0.0.1:3000/api/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"
27
+ interval: 10s
28
+ timeout: 5s
29
+ retries: 12
30
+ start_period: 30s
31
+
32
+ volumes:
33
+ or3-data:
34
+ name: ${OR3_VOLUME_NAME}