-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
77 lines (73 loc) · 1.74 KB
/
docker-compose.dev.yml
File metadata and controls
77 lines (73 loc) · 1.74 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
stranddb-dev:
build:
context: .
dockerfile: Dockerfile.dev
args:
USER_ID: ${UID:-1000}
GROUP_ID: ${GID:-1000}
image: stranddb:dev
container_name: stranddb-dev
volumes:
# Mount source code for hot-reload
- .:/workspace:cached
# Cache Cargo registry
- cargo-registry:/usr/local/cargo/registry
- cargo-git:/usr/local/cargo/git
# Cache target directory (builds)
- target:/workspace/target
ports:
- "7878:7878" # StrandDB port
- "9090:9090" # Metrics port
- "5678:5678" # Debug port (for rust-lldb)
environment:
- RUST_LOG=debug
- RUST_BACKTRACE=1
- CARGO_HOME=/usr/local/cargo
working_dir: /workspace
stdin_open: true
tty: true
networks:
- stranddb-dev-network
command: bash
# Test database for integration tests
test-mongodb:
image: mongo:7.0
container_name: stranddb-test-mongodb
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- mongodb-data:/data/db
networks:
- stranddb-dev-network
# Test database for benchmarking
test-postgres:
image: postgres:16
container_name: stranddb-test-postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=testdb
volumes:
- postgres-data:/var/lib/postgresql/data
networks:
- stranddb-dev-network
volumes:
cargo-registry:
driver: local
cargo-git:
driver: local
target:
driver: local
mongodb-data:
driver: local
postgres-data:
driver: local
networks:
stranddb-dev-network:
driver: bridge