-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
127 lines (121 loc) · 3.8 KB
/
docker-compose.yml
File metadata and controls
127 lines (121 loc) · 3.8 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
services:
ensindexer:
container_name: ensindexer
image: ghcr.io/namehash/ensnode/ensindexer:latest
ports:
- "42069:42069"
environment:
# Override environment variables to point to docker instances
ENSDB_URL: postgresql://postgres:password@postgres:5432/postgres
ENSINDEXER_SCHEMA_NAME: docker_compose_ensindexer_schema
ENSRAINBOW_URL: http://ensrainbow:3223
env_file:
# NOTE: must define apps/ensindexer/.env.local (see apps/ensindexer/.env.local.example)
# Copy .env.local.example to .env.local and configure all required values
- path: ./apps/ensindexer/.env.local
required: true
healthcheck:
test: ["CMD", "curl", "--fail", "-s", "http://localhost:42069/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5m
start_interval: 1s
depends_on:
ensrainbow:
condition: service_healthy
postgres:
condition: service_started
ensapi:
container_name: ensapi
image: ghcr.io/namehash/ensnode/ensapi:latest
ports:
- "4334:4334"
environment:
# Override environment variables to point to docker instances
ENSDB_URL: postgresql://postgres:password@postgres:5432/postgres
ENSINDEXER_SCHEMA_NAME: docker_compose_ensindexer_schema
env_file:
# NOTE: must define apps/ensapi/.env.local (see apps/ensapi/.env.local.example)
# Copy .env.local.example to .env.local and configure all required values
- path: ./apps/ensapi/.env.local
required: true
healthcheck:
test: ["CMD", "curl", "--fail", "-s", "http://localhost:4334/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 1m
start_interval: 1s
depends_on:
postgres:
condition: service_started
ensrainbow:
container_name: ensrainbow
image: ghcr.io/namehash/ensnode/ensrainbow:latest
ports:
- "3223:3223"
env_file:
# NOTE: Optionally define apps/ensrainbow/.env.local (see apps/ensrainbow/.env.local.example)
- path: ./apps/ensrainbow/.env.local
required: false
volumes:
- ensrainbow_data:/app/apps/ensrainbow/data
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3223/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 20m
start_interval: 1s
ensadmin:
container_name: ensadmin
image: ghcr.io/namehash/ensnode/ensadmin:latest
ports:
- "4173:4173"
environment:
# Override environment variables to point to docker instances
# NOTE: must be host-accessible (i.e. http://localhost)
ENSADMIN_PUBLIC_URL: http://localhost:4173
# NOTE: must be host-accessible (i.e. http://localhost)
NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY: http://localhost:4334
env_file:
# NOTE: can define apps/ensadmin/.env.local (see apps/ensadmin/.env.local.example)
- path: ./apps/ensadmin/.env.local
required: false
depends_on:
ensapi:
condition: service_started
postgres:
container_name: postgres
image: postgres:17
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
devnet:
container_name: devnet
image: ghcr.io/ensdomains/contracts-v2:main-e8696c6
command: ./script/runDevnet.ts --testNames
pull_policy: always
ports:
- "8545:8545"
environment:
ANVIL_IP_ADDR: "0.0.0.0"
healthcheck:
test: ["CMD", "curl", "--fail", "-s", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
start_interval: 1s
volumes:
postgres_data:
driver: local
ensrainbow_data:
driver: local