-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 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
41
42
43
44
45
46
47
services:
db:
image: postgres:16
environment:
POSTGRES_DB: tracevault
POSTGRES_USER: tracevault
POSTGRES_PASSWORD: tracevault
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tracevault"]
interval: 5s
timeout: 5s
retries: 5
server:
build: .
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgres://tracevault:tracevault@db:5432/tracevault
HOST: 0.0.0.0
PORT: 3000
RUST_LOG: info
CORS_ORIGIN: http://localhost:5173
# Required: AES-256 encryption key for per-org signing keys, deploy keys, etc.
# Generate with: openssl rand -base64 32
TRACEVAULT_ENCRYPTION_KEY: ${TRACEVAULT_ENCRYPTION_KEY:?Set TRACEVAULT_ENCRYPTION_KEY env var (openssl rand -base64 32)}
ports:
- "3000:3000"
web:
build:
context: ./web
dockerfile: Dockerfile
ports:
- "5173:4000"
environment:
API_URL: http://server:3000
depends_on:
- server
volumes:
pgdata: