-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (42 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
52 lines (42 loc) · 1.42 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
services:
evvm-cli:
build:
context: .
dockerfile: Dockerfile
image: evvm/testnet-contracts:latest
container_name: evvm-cli
# Mount your .env file (create it in the same directory as compose.yml)
volumes:
# Mount .env file for configuration (place it in this directory)
- ./.env:/workspace/.env:ro
# Persist deployment results
- ./output:/workspace/output
# Persist Foundry keystores (wallets) between container runs
- foundry-keystores:/root/.foundry/keystores
# Optional: Mount host keystore for wallet access (alternative to above)
# Uncomment if you want to use wallets from your host machine
# - ~/.foundry/keystores:/root/.foundry/keystores:ro
# Interactive mode
stdin_open: true
tty: true
# Network mode
network_mode: bridge
# Environment variables (optional overrides)
environment:
- TERM=xterm-256color
# Override entrypoint to get an interactive shell
# Uncomment to start with bash instead of the CLI
# entrypoint: /bin/bash
# command: []
# Optional: Add a local Ethereum node for testing
# anvil:
# image: ghcr.io/foundry-rs/foundry:latest
# container_name: evvm-anvil
# ports:
# - "8545:8545"
# command: anvil --host 0.0.0.0
# network_mode: bridge
# Named volumes for data persistence
volumes:
foundry-keystores:
driver: local