generated from edenia/backend-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
62 lines (62 loc) · 2.19 KB
/
docker-compose.yaml
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
version: "3.8"
services:
postgres:
container_name: "eden-api-postgres"
image: postgres:13.3-alpine
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
hapi:
container_name: "eden-api-hapi"
image: node:16.0.0
ports:
- "9090:9090"
volumes:
- ./tmp/hapi/node_modules/:/app/node_modules/
- type: bind
source: ./hapi
target: /app
working_dir: /app
command: bash -c "yarn && yarn watch"
environment:
HAPI_SERVER_PORT: "${HAPI_SERVER_PORT}"
HAPI_SERVER_ADDRESS: "${HAPI_SERVER_ADDRESS}"
HAPI_NETWORK_API: "${HAPI_NETWORK_API}"
HAPI_NETWORK_CHAIN_ID: "${HAPI_NETWORK_CHAIN_ID}"
HAPI_HASURA_URL: "${HAPI_HASURA_URL}"
HAPI_HASURA_ADMIN_SECRET: "${HAPI_HASURA_ADMIN_SECRET}"
HAPI_EDENSMARTPRX_CONTRACT: "${HAPI_EDENSMARTPRX_CONTRACT}"
HAPI_EDEN_CONTRACT: "${HAPI_EDEN_CONTRACT}"
HAPI_AA_BASE_URL: "${HAPI_AA_BASE_URL}"
hasura:
container_name: "eden-api-hasura"
image: hasura/graphql-engine:latest.cli-migrations-v3.ubuntu
ports:
- "8080:8080"
depends_on:
- postgres
volumes:
- ./hasura/migrations:/migrations
- ./hasura/metadata:/metadata
- ./hasura/seeds:/seeds
environment:
HASURA_GRAPHQL_DATABASE_URL: "${HASURA_GRAPHQL_DATABASE_URL}"
HASURA_GRAPHQL_MIGRATIONS_DIR: /migrations
HASURA_GRAPHQL_METADATA_DIR: /metadata
HASURA_GRAPHQL_SEEDS_DIR: /seeds
HASURA_GRAPHQL_ACTION_BASE_URL: "${HASURA_GRAPHQL_ACTION_BASE_URL}"
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
# Local Development Configurations It is recommended to disable this in production
# HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ENABLE_LOGGING: "true"
# disabled security for local development
HASURA_GRAPHQL_ADMIN_SECRET: "${HASURA_GRAPHQL_ADMIN_SECRET}"
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "${HASURA_GRAPHQL_UNAUTHORIZED_ROLE}"
volumes:
postgres_data: