-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 1009 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 1009 Bytes
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
41
42
# TheSNMC RustDB local docker stack
version: "3.9"
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: rustdb
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 20
api:
build: .
command: python main_postgres.py
environment:
RUSTDB_PG_DSN: postgresql://postgres:postgres@postgres:5432/rustdb
RUSTDB_API_KEYS: devkey:default,tenantbkey:tenant_b
RUSTDB_TENANT: default
ports:
- "8081:8081"
depends_on:
postgres:
condition: service_healthy
worker:
build: .
command: python worker_postgres.py
environment:
RUSTDB_PG_DSN: postgresql://postgres:postgres@postgres:5432/rustdb
RUSTDB_TICK_INTERVAL_SEC: "1.0"
RUSTDB_SHADOW_MODE: "0"
RUSTDB_TENANT: default
depends_on:
postgres:
condition: service_healthy