-
Notifications
You must be signed in to change notification settings - Fork 110
/
docker-compose.yml
46 lines (44 loc) · 1.44 KB
/
docker-compose.yml
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
version: "3.6"
services:
node:
build:
context: ./
dockerfile: ./crates/standalone/Dockerfile
args:
CARGO_PROFILE: dev
volumes:
- ./crates/standalone:/usr/src/app/crates/standalone
- ./crates/core:/usr/src/app/crates/core
- ./crates/client-api:/usr/src/app/crates/client-api
- ./crates/lib:/usr/src/app/crates/lib
- ./crates/sats:/usr/src/app/crates/sats
- ./crates/bindings:/usr/src/app/crates/bindings
- ./crates/bindings-macro:/usr/src/app/crates/bindings-macro
- ./crates/bindings-sys:/usr/src/app/crates/bindings-sys
- ./crates/vm:/usr/src/app/crates/vm
- ./crates/metrics:/usr/src/app/crates/metrics
- ./crates/client-api-messages:/usr/src/app/crates/client-api-messages
- ./Cargo.toml:/usr/src/app/Cargo.toml
- ./flamegraphs:/usr/src/app/flamegraphs
- key_files:/etc/spacetimedb
- /stdb
ports:
- "3000:3000"
# Tracy
- "8086:8086"
entrypoint: cargo watch -i flamegraphs -i log.conf --why -C crates/standalone -x 'run start'
healthcheck:
test: curl -f http://localhost/database/ping || exit 1
privileged: true
environment:
SPACETIMEDB_FLAMEGRAPH_PATH: ../../../../flamegraphs/flamegraph.folded
SPACETIMEDB_TRACY: 1
RUST_BACKTRACE: 1
ENV: dev
networks:
- spacetimedb_default
networks:
spacetimedb_default:
name: spacetimedb_default
volumes:
key_files: