-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
57 lines (54 loc) · 1.45 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
57 lines (54 loc) · 1.45 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
# Local development infrastructure: Postgres + Anvil.
# Apps (indexer / api / web) run on the host via `make start` / `pnpm dev`.
#
# make infra # or: docker compose -f docker-compose.dev.yml up -d
# make start # infra + deploy + all apps
services:
postgres:
image: postgres:16-alpine
container_name: lcai-postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-lcai}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-lcai}
POSTGRES_DB: ${POSTGRES_DB:-lcai_launchpad}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- lcai_pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
anvil:
image: ghcr.io/foundry-rs/foundry:latest
container_name: lcai-anvil
restart: unless-stopped
# Image ENTRYPOINT is `sh -c`; override so flags are passed correctly.
entrypoint: ["anvil"]
command:
- --host=0.0.0.0
- --port=8545
- --chain-id=1337
- --block-time=6
- --accounts=10
- --balance=10000
ports:
- "${ANVIL_PORT:-8545}:8545"
healthcheck:
test:
[
"CMD",
"cast",
"block-number",
"--rpc-url",
"http://127.0.0.1:8545",
]
interval: 5s
timeout: 5s
retries: 12
start_period: 5s
volumes:
lcai_pg_data: