-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
103 lines (94 loc) · 2.54 KB
/
docker-compose.dev.yml
File metadata and controls
103 lines (94 loc) · 2.54 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Development Override for docker-compose.yml
#
# Usage:
# docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
version: '3.8'
services:
# Circuits - Development Mode
circuits:
build:
context: .
dockerfile: docker/Dockerfile.circuits
target: dev
volumes:
- ./circuits:/workspace/circuits:rw
- /workspace/circuits/node_modules # Don't mount node_modules
command: bash
stdin_open: true
tty: true
# Soroban - Development Mode
soroban:
volumes:
- ./soroban:/workspace/soroban:rw
- cargo-cache:/usr/local/cargo/registry
- cargo-git:/usr/local/cargo/git
# Cache target directory for faster builds
- soroban-target:/workspace/soroban/target
environment:
- RUST_BACKTRACE=1
- RUST_LOG=debug
command: bash
stdin_open: true
tty: true
# EVM - Development Mode
evm:
volumes:
- ./evm-verification:/workspace/evm-verification:rw
- foundry-cache:/root/.foundry
environment:
- FOUNDRY_PROFILE=dev
command: bash
stdin_open: true
tty: true
# Anvil - Development Mode with verbose logging
anvil:
command: >
anvil
--host 0.0.0.0
--chain-id 31337
--block-time 1
--gas-limit 30000000
--accounts 10
--balance 10000
ports:
- "8545:8545"
# Stellar Quickstart - Development Mode
stellar-quickstart:
command: --standalone --enable-soroban-rpc --enable-soroban-diagnostic-events
environment:
- LOG_LEVEL=debug
volumes:
- stellar-data:/data
# Web - Development Mode (Hot Reload)
web:
build:
context: .
dockerfile: docker/Dockerfile.web
target: dev
volumes:
- ./web:/app:rw
- /app/node_modules # Don't mount node_modules
- /app/.next # Don't mount .next
environment:
- NODE_ENV=development
- NEXT_PUBLIC_EVM_RPC=http://localhost:8545
- NEXT_PUBLIC_SOROBAN_RPC=http://localhost:8000
- WATCHPACK_POLLING=true # Enable file watching in Docker
command: npm run dev
ports:
- "3000:3000"
- "3001:3001" # Next.js dev server
stdin_open: true
tty: true
# Development-specific volumes
volumes:
soroban-target:
name: openzktool-soroban-target-dev
stellar-data:
name: openzktool-stellar-data-dev
# Notes:
# - All services have hot-reload enabled
# - Source code is mounted with read-write permissions
# - Verbose logging enabled for debugging
# - Additional development tools available
# - node_modules and build artifacts are not mounted (performance)