-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
59 lines (58 loc) · 2.14 KB
/
docker-compose.test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.2'
services:
postgres:
image: postgres:12
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
algolia-webhook:
image: eyuelberga/peernotes-algolia-webhook:v0.0.1
ports:
- '3001:3000'
environment:
ALGOLIA_ADMIN_API_KEY: ${ALGOLIA_ADMIN_API_KEY}
ALGOLIA_APP_ID: ${ALGOLIA_APP_ID}
ALGOLIA_INDEX: ${ALGOLIA_INDEX}
HASURA_GRAPHQL_URL: 'http://graphql-engine:8080/v1/graphql'
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
graphql-engine:
image: hasura/graphql-engine:v2.0.10.cli-migrations-v3
ports:
- '8080:8080'
depends_on:
- 'postgres'
- 'algolia-webhook'
restart: always
volumes:
- ./hasura/migrations:/hasura-migrations
- ./hasura/metadata:/hasura-metadata
environment:
HASURA_GRAPHQL_METADATA_DATABASE_URL: ${HASURA_GRAPHQL_METADATA_DATABASE_URL}
PG_DATABASE_URL: ${HASURA_GRAPHQL_METADATA_DATABASE_URL}
HASURA_GRAPHQL_ENABLE_CONSOLE: 'false'
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
ALGOLIA_WEBHOOK_URL: 'http://172.17.0.1:3001/'
web:
image: eyuelberga/peernotes-web-test:v0.0.1
ports:
- '3000:80'
depends_on:
- 'graphql-engine'
restart: always
environment:
REACT_APP_GRAPHQL_HTTPS_URL: 'http://localhost:8080/v1/graphql'
REACT_APP_GRAPHQL_WSS_URL: 'ws://localhost:8080/v1/graphql'
REACT_APP_AUTH0_DOMAIN: ${REACT_APP_AUTH0_DOMAIN}
REACT_APP_AUTH0_CLIENT_ID: ${REACT_APP_AUTH0_CLIENT_ID}
REACT_APP_AUTH0_AUDIENCE: ${REACT_APP_AUTH0_AUDIENCE}
REACT_APP_CLOUDNARY_CLOUD_NAME: ${REACT_APP_CLOUDNARY_CLOUD_NAME}
REACT_APP_CLOUDNARY_UPLOAD_PRESET: ${REACT_APP_CLOUDNARY_UPLOAD_PRESET}
REACT_APP_ALGOLIA_APP_ID: ${REACT_APP_ALGOLIA_APP_ID}
REACT_APP_ALGOLIA_API_KEY: ${REACT_APP_ALGOLIA_API_KEY}
REACT_APP_ALGOLIA_INDEX: ${REACT_APP_ALGOLIA_INDEX}
volumes:
db_data: