-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
74 lines (70 loc) · 1.94 KB
/
docker-compose.dev.yml
File metadata and controls
74 lines (70 loc) · 1.94 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.8'
services:
postgres:
image: postgres:16
container_name: keycast-postgres-dev
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: keycast
POSTGRES_USER: postgres
ports:
- "5432:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 5
keycast:
build:
context: .
command: unified
ports:
- "3000:3000"
- "5173:5173"
volumes:
- ./master.key:/app/master.key:ro
environment:
DATABASE_URL: postgres://postgres:password@postgres:5432/keycast
RUST_LOG: debug,keycast_signer=debug
MASTER_KEY_PATH: /app/master.key
USE_GCP_KMS: "false"
ALLOWED_ORIGINS: http://localhost:5173,http://localhost:5174
BUNKER_RELAYS: ${BUNKER_RELAYS:?Set BUNKER_RELAYS in .env}
WEB_BUILD_DIR: /app/web
FROM_EMAIL: test@localhost
SENDGRID_API_KEY: ${SENDGRID_API_KEY:-}
VITE_DOMAIN: http://localhost:3000
VITE_ALLOWED_PUBKEYS: ${VITE_ALLOWED_PUBKEYS:-}
VITE_NDK_EXPLICIT_RELAYS: ${VITE_NDK_EXPLICIT_RELAYS:-}
VITE_NDK_BUNKER_RELAYS: ${VITE_NDK_BUNKER_RELAYS:-}
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck.sh", "unified"]
interval: 10s
timeout: 5s
retries: 3
start_period: 20s
# Test runner service (uses test database)
test:
build:
context: .
target: rust-builder
command: cargo test --workspace
volumes:
- ./api:/app/api
- ./core:/app/core
- ./signer:/app/signer
- ./keycast:/app/keycast
- ./database:/app/database
environment:
RUST_LOG: debug
DATABASE_URL: postgres://postgres:password@postgres:5432/keycast_test
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_dev_data: