-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
43 lines (42 loc) · 1.29 KB
/
docker-compose.dev.yml
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
volumes:
postgres_volume:
services:
postgres:
image: postgres:latest
container_name: postgres_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres_volume:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
interval: 10s
timeout: 5s
retries: 5
backend:
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
RPC_ENDPOINT: ${RPC_ENDPOINT}
PRIVATE_KEYS_PATH: ${PRIVATE_KEYS_PATH}
CORS_ALLOWED_ORIGINS: ${CORS_ALLOWED_ORIGINS}
OBJECT_MAPPING_ARCHIVER_URL: ${OBJECT_MAPPING_ARCHIVER_URL}
MAX_CACHE_SIZE: ${MAX_CACHE_SIZE}
JWT_SECRET: ${JWT_SECRET}
FILES_GATEWAY_URL: ${FILES_GATEWAY_URL}
FILES_GATEWAY_TOKEN: ${FILES_GATEWAY_TOKEN}
ports:
- "127.0.0.1:3000:3000"
hasura:
depends_on:
backend:
condition: service_healthy
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres