-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dstack-full.yaml
More file actions
40 lines (37 loc) · 1.1 KB
/
docker-compose.dstack-full.yaml
File metadata and controls
40 lines (37 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# dstack deployment - Topology 3: Full Confidential (Postgres in CVM)
# Both tinycloud-node and Postgres run inside the same CVM.
# Maximum confidentiality - no external database exposure.
services:
tinycloud:
image: ghcr.io/tinycloudlabs/tinycloud-node:latest
ports:
- "8000:8000"
- "8001:8001"
volumes:
- /var/run/dstack.sock:/var/run/dstack.sock
environment:
TINYCLOUD_KEYS_TYPE: Dstack
TINYCLOUD_STORAGE_DATABASE: "postgres://tinycloud:tinycloud@postgres:5432/tinycloud"
TINYCLOUD_STORAGE_BLOCKS_TYPE: Local
TINYCLOUD_STORAGE_BLOCKS_PATH: /data/blocks
TINYCLOUD_LOG_LEVEL: normal
TINYCLOUD_CORS: "true"
ROCKET_ADDRESS: "0.0.0.0"
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16
environment:
POSTGRES_USER: tinycloud
POSTGRES_PASSWORD: tinycloud
POSTGRES_DB: tinycloud
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tinycloud"]
interval: 5s
timeout: 5s
retries: 5
volumes:
pgdata: