forked from forbole/callisto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
68 lines (68 loc) · 2.24 KB
/
docker-compose-prod.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
60
61
62
63
64
65
66
67
68
version: '3.6'
services:
bdjuno:
build:
context: .
# args:
# HASURA_GRAPHQL_ENDPOINT_URL: ${HASURA_GRAPHQL_ENDPOINT_URL}
# HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
dockerfile: Dockerfile
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
HASURA_GRAPHQL_ENDPOINT_URL: ${HASURA_GRAPHQL_ENDPOINT_URL}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
logging:
driver: ${LOGGING_DRIVER}
depends_on:
- cloudsql-proxy
hasura:
image: hasura/graphql-engine:v2.3.1
ports:
- "8080:8080"
logging:
driver: ${LOGGING_DRIVER}
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
HASURA_GRAPHQL_DATABASE_URL: ${HASURA_GRAPHQL_DATABASE_URL}
HASURA_GRAPHQL_ENABLE_CONSOLE: ${HASURA_GRAPHQL_ENABLE_CONSOLE}
HASURA_GRAPHQL_DEV_MODE: ${HASURA_GRAPHQL_DEV_MODE}
HASURA_GRAPHQL_ENABLED_LOG_TYPES: ${HASURA_GRAPHQL_ENABLED_LOG_TYPES}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: ${HASURA_GRAPHQL_UNAUTHORIZED_ROLE}
depends_on:
- cloudsql-proxy
- hasura-actions
hasura-actions:
build:
context: .
args:
HASURA_ACTIONS_PORT: ${HASURA_ACTIONS_PORT}
HASURA_ACTIONS_GRPC: ${HASURA_ACTIONS_GRPC}
HASURA_ACTIONS_RPC: ${HASURA_ACTIONS_RPC}
dockerfile: ./hasura/Dockerfile
ports:
- "4000:4000"
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
HASURA_ACTIONS_PORT: ${HASURA_ACTIONS_PORT}
HASURA_ACTIONS_GRPC: ${HASURA_ACTIONS_GRPC}
HASURA_ACTIONS_RPC: ${HASURA_ACTIONS_RPC}
cloudsql-proxy:
container_name: cloudsql-proxy
image: gcr.io/cloudsql-docker/gce-proxy:1.33.15
command: /cloud_sql_proxy -credential_file=/opt/secrets/cloudsqlcreds.json -dir=/cloudsql -instances=${GCLOUD_INSTANCE_CONNECTION_NAME}=tcp:0.0.0.0:5432
ports:
- 5432:5432
environment:
HASURA_GRAPHQL_DATABASE_URL: ${GCLOUD_INSTANCE_CONNECTION_NAME}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- /opt/secrets:/opt/secrets
restart: always