2021-03-19 18:09:59 +00:00
|
|
|
version: '2.4'
|
|
|
|
services:
|
2023-01-09 15:11:23 +00:00
|
|
|
cache:
|
|
|
|
image: redis:7.0.7-alpine
|
2021-03-19 18:09:59 +00:00
|
|
|
db:
|
2023-01-09 15:11:23 +00:00
|
|
|
image: postgres:15.1
|
2021-03-19 18:09:59 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
|
|
|
|
POSTGRES_USER: "${POSTGRES_USER}"
|
2021-08-30 16:12:19 +00:00
|
|
|
|
2021-03-19 18:09:59 +00:00
|
|
|
app:
|
2023-01-09 15:11:23 +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:
|
2023-01-09 15:11:23 +00:00
|
|
|
image: nginx:1.23.3-alpine
|
2021-03-19 18:09:59 +00:00
|
|
|
volumes:
|
|
|
|
- graphiql:/public-console:ro
|
|
|
|
|
|
|
|
graphql-engine:
|
2023-01-09 15:11:23 +00:00
|
|
|
image: hasura/graphql-engine:v2.16.1
|
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:
|
2021-05-14 17:48:14 +00:00
|
|
|
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
|
2021-08-30 16:12:19 +00:00
|
|
|
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
|
|
|
|
2021-08-30 16:12:19 +00:00
|
|
|
volumes:
|
2021-03-19 18:09:59 +00:00
|
|
|
graphiql:
|