-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.29 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.29 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: vault
POSTGRES_USER: vault
POSTGRES_PASSWORD: vault_dev_password
ports:
- '5432:5432'
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U vault']
interval: 5s
timeout: 3s
retries: 5
vault-api:
build:
context: .
dockerfile: apps/vault-api/Dockerfile
ports:
- '3000:3000'
environment:
DATABASE_URL: postgresql://vault:vault_dev_password@postgres:5432/vault
CRYPTO_CORE_MODE: dev
NODE_ENV: development
PORT: '3000'
depends_on:
postgres:
condition: service_healthy
# DEV ONLY — never mount real keysets here
volumes:
- ./packages/crypto-core/keysets:/app/packages/crypto-core/keysets:ro
healthcheck:
test: ['CMD', 'node', '-e', "require('http').get('http://localhost:3000/api/v1/health', r => { process.exit(r.statusCode === 200 ? 0 : 1) })"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
admin-console:
build:
context: .
dockerfile: apps/admin-console/Dockerfile
ports:
- '4200:80'
depends_on:
vault-api:
condition: service_healthy
volumes:
pgdata: