-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathdocker-compose-prod-graphql.yml
More file actions
41 lines (36 loc) · 914 Bytes
/
docker-compose-prod-graphql.yml
File metadata and controls
41 lines (36 loc) · 914 Bytes
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
version: '2.4'
services:
cache:
restart: "no"
db:
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_USER: "${POSTGRES_USER}"
app:
image: pokeapi/pokeapi:master
env_file: .env
restart: "no"
web:
depends_on:
graphiql:
condition: service_started
graphql-engine:
condition: service_healthy
logging:
driver: gcplogs
graphql-engine:
cpus: 0.7
memswap_limit: 3g
mem_limit: 700m
environment:
HASURA_GRAPHQL_DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB:-pokeapi}"
HASURA_GRAPHQL_ADMIN_SECRET: "${HASURA_GRAPHQL_ADMIN_SECRET}"
HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL: 0
HASURA_GRAPHQL_EVENTS_HTTP_POOL_SIZE: 10
graphiql:
image: pokeapi/graphiql:2.0.1
expose:
- 80
depends_on:
- graphql-engine
restart: always