22 lines
542 B
YAML
22 lines
542 B
YAML
|
|
# Local development stack. In production the app is deployed by the
|
||
|
|
# infrastructure repo (terraform), which supplies NATS and Kanidm — this
|
||
|
|
# compose file only exists for standalone hacking.
|
||
|
|
|
||
|
|
services:
|
||
|
|
app:
|
||
|
|
build: .
|
||
|
|
env_file: .env
|
||
|
|
environment:
|
||
|
|
NATS_URL: nats://nats:4222
|
||
|
|
ports:
|
||
|
|
- "3000:3000"
|
||
|
|
depends_on:
|
||
|
|
- nats
|
||
|
|
|
||
|
|
nats:
|
||
|
|
image: nats:2.10-alpine
|
||
|
|
command: ["-js", "-m", "8222"]
|
||
|
|
ports:
|
||
|
|
- "4222:4222" # client connections
|
||
|
|
- "8222:8222" # monitoring UI (http://localhost:8222)
|