pokeapi/Resources/compose/docker-compose-prod-graphql.yml

43 lines
953 B
YAML
Raw Normal View History

2021-03-19 18:09:59 +00:00
version: '2.4'
services:
2024-04-01 19:13:36 +00:00
cache:
restart: "no"
2021-03-19 18:09:59 +00:00
db:
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_USER: "${POSTGRES_USER}"
2021-03-19 18:09:59 +00:00
app:
2024-01-09 20:12:46 +00:00
image: pokeapi/pokeapi:master
2021-03-19 18:09:59 +00:00
env_file: .env
2022-02-25 18:43:39 +00:00
restart: "no"
2021-03-19 18:09:59 +00:00
web:
volumes:
- graphiql:/public-console:ro
2024-02-09 18:48:52 +00:00
logging:
driver: gcplogs
2021-03-19 18:09:59 +00:00
graphql-engine:
2021-08-30 16:24:56 +00:00
cpus: 0.7
memswap_limit: 3g
2021-08-31 10:19:20 +00:00
mem_limit: 700m
2021-03-19 18:09:59 +00:00
environment:
HASURA_GRAPHQL_DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB:-pokeapi}"
2021-03-19 18:09:59 +00:00
HASURA_GRAPHQL_ADMIN_SECRET: "${HASURA_GRAPHQL_ADMIN_SECRET}"
2021-08-31 10:19:20 +00:00
HASURA_GRAPHQL_SCHEMA_SYNC_POLL_INTERVAL: 0
HASURA_GRAPHQL_EVENTS_HTTP_POOL_SIZE: 10
2021-03-19 18:09:59 +00:00
graphiql:
2021-03-20 18:04:28 +00:00
image: pokeapi/graphiql:1.0.1
2021-03-19 18:09:59 +00:00
command: sh -c 'cp -a /app/static/. /transfer/ && tail -f /etc/passwd'
volumes:
- graphiql:/transfer
depends_on:
2021-03-19 18:09:59 +00:00
- graphql-engine
2023-01-03 23:05:29 +00:00
restart: always
2021-03-19 18:09:59 +00:00
volumes:
2021-03-19 18:09:59 +00:00
graphiql: