-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
34 lines (32 loc) · 1.24 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
34 lines (32 loc) · 1.24 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
# Local-dev overlay — builds api + admin from source instead of pulling published images.
# Usage: docker compose -f docker-compose.yml -f docker-compose.local.yml up -d --build
#
# The admin Dockerfile lives in ../statewave-admin. Both images rebuild from
# whatever is on disk so you can iterate without pushing to a registry.
services:
api:
image: statewavedev/statewave:local-dev
build:
context: .
dockerfile: Dockerfile
pull_policy: never
restart: unless-stopped
admin:
image: statewavedev/statewave-admin:local-dev
build:
context: ../statewave-admin
dockerfile: Dockerfile
pull_policy: never
restart: unless-stopped
environment:
ADMIN_AUTH_DISABLED: "true"
# Encryption key for the admin secrets store (ADMIN_PASSWORD,
# STATEWAVE_API_KEY). Must be ≥ 8 chars. Change this before exposing
# the admin outside localhost. Rotate by stopping the stack, deleting
# the admin_state volume, setting a new key, and re-running the wizard.
STATEWAVE_ADMIN_MASTER_KEY: "${STATEWAVE_ADMIN_MASTER_KEY:-dev-local-master-key-local}"
STATEWAVE_ADMIN_STATE_DIR: "/data/statewave-admin"
volumes:
- admin_state:/data/statewave-admin
volumes:
admin_state: