-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
60 lines (60 loc) · 1.81 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
version: "3.6"
services:
explainai-database-engine:
container_name: explainai-database-engine
image: postgres:13.0-alpine
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgrespassword
explainai-database-api:
container_name: explainai-database-api
image: hasura/graphql-engine:v2.19.0-ce.cli-migrations-v3
ports:
- "8080:8080"
depends_on:
- "explainai-database-engine"
restart: always
volumes:
- ./database/migrations:/hasura-migrations
- ./database/metadata:/hasura-metadata
environment:
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: admin_secret
DATABASE_URL: postgres://postgres:postgrespassword@explainai-database-engine:5432/postgres
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@explainai-database-engine:5432/postgres
API_ENDPOINT: http://explainai-backend-api:4000
explainai-backend-api:
container_name: explainai-backend-api
working_dir: /app
build: ./api
ports:
- "4000:4000"
volumes:
- "./api:/app"
- "/app/node_modules"
environment:
- DB_ENDPOINT=http://explainai-database-api:8080
- DB_SECRET=admin_secret
depends_on:
- explainai-database-api
restart: always
explainai-frontend-web:
container_name: explainai-frontend-react
working_dir: /app
build: ./web
ports:
- "3000:3000"
volumes:
- "./web:/app"
- "/app/node_modules"
environment:
- REACT_APP_API_ENDPOINT=http://localhost:4000
- REACT_APP_MEASUREMENT_ID=G-NDPH0VPH2Y
stdin_open: true
tty: true
volumes:
db_data: