Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
63 lines (61 loc) · 2.02 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
63 lines (61 loc) · 2.02 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
services:
postgres:
image: postgres:18-alpine
container_name: bfw-engine-postgres-dev
# Production pools are 100 write + 50 read; stock Postgres allows 100.
command: postgres -c max_connections=200
environment:
POSTGRES_USER: bfw_engine
POSTGRES_PASSWORD: bfw_engine
POSTGRES_DB: bfw_engine_dev
POSTGRES_INITDB_ARGS: "--data-checksums"
ports:
- "5543:5432"
volumes:
- bfw_engine_postgres_data_dev:/var/lib/postgresql
healthcheck:
test: ["CMD", "pg_isready", "-U", "bfw_engine", "-d", "bfw_engine_dev"]
interval: 5s
timeout: 5s
retries: 12
engine:
build:
context: .
dockerfile: docker/Dockerfile
container_name: bfw-engine-dev
environment:
BFE_DEVTOOLS_ENABLED: true
BFE_EXPOSE_OPENAPI_SPEC: true
BFE_DATABASE_HOST: postgres
BFE_DATABASE_PORT: 5432
BFE_DATABASE_NAME: bfw_engine_dev
BFE_DATABASE_USER: bfw_engine
BFE_DATABASE_PASS: bfw_engine
BFE_HTTP_PORT: "4100"
BFE_HTTP_SECRET_KEY_BASE: "AveOmnissiah_FromTheHolyForgesOfMars_NotAProductionSecret_Mechanicus!!"
BFE_ENGINE_ID: "bfw-engine-local-dev"
BFE_ENGINE_NAME: "BFW-Engine (local dev)"
# Payload cap + compression defaults.
BFE_TOKEN_MAX_BYTES: "65536"
BFE_JSONB_COMPRESSION: "lz4"
# Auth — HS256 dev secret. Mint tokens with: mix bfw.mint_token
BFE_JWT_HS256_SECRET: "AveOmnissiah_FromTheHolyForgesOfMars_NotAProductionSecret_Mechanicus!!"
BFE_EVENT_SINK_CONSOLE: "on"
BFE_EVENT_SINK_TELEMETRY: "on"
BFE_EVENT_SINK_WEBSOCKET: "on"
# Optional seeding directory. Mount a host folder to use it.
# BFE_SEEDING_DIRECTORY: "/app/seeding"
ports:
- "4100:4100"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:4100/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
volumes:
bfw_engine_postgres_data_dev: