2020-10-03 16:43:34 +00:00
|
|
|
version: '2.4'
|
2016-07-07 12:23:59 +00:00
|
|
|
services:
|
|
|
|
cache:
|
2024-01-09 19:46:53 +00:00
|
|
|
image: redis:7.2.3-alpine
|
2016-07-07 12:23:59 +00:00
|
|
|
volumes:
|
|
|
|
- redis_data:/data
|
2021-03-08 21:48:16 +00:00
|
|
|
restart: always
|
2016-07-07 12:23:59 +00:00
|
|
|
|
|
|
|
db:
|
2024-01-09 19:46:53 +00:00
|
|
|
image: postgres:16.1
|
2016-07-07 12:23:59 +00:00
|
|
|
environment:
|
2021-05-14 17:48:14 +00:00
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pokemon}
|
|
|
|
POSTGRES_USER: ${POSTGRES_USER:-ash}
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB:-pokeapi}
|
2016-07-07 12:23:59 +00:00
|
|
|
volumes:
|
|
|
|
- pg_data:/var/lib/postgresql/data
|
2021-03-08 21:48:16 +00:00
|
|
|
restart: always
|
2016-07-07 12:23:59 +00:00
|
|
|
|
|
|
|
app:
|
2021-05-17 20:43:01 +00:00
|
|
|
user: ${RUN_AS:-pokeapi}
|
2021-05-14 17:48:14 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pokemon}
|
|
|
|
POSTGRES_USER: ${POSTGRES_USER:-ash}
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB:-pokeapi}
|
2016-07-07 12:23:59 +00:00
|
|
|
volumes:
|
2019-01-04 14:36:29 +00:00
|
|
|
- .:/code
|
2016-07-07 12:23:59 +00:00
|
|
|
links:
|
|
|
|
- db
|
|
|
|
- cache
|
2019-01-04 14:36:29 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- cache
|
2021-03-08 21:48:16 +00:00
|
|
|
restart: always
|
2016-07-07 12:23:59 +00:00
|
|
|
|
|
|
|
web:
|
2024-01-09 19:46:53 +00:00
|
|
|
image: nginx:1.25.3-alpine
|
2016-07-07 12:23:59 +00:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
2021-03-08 21:48:16 +00:00
|
|
|
restart: always
|
2021-03-23 19:08:22 +00:00
|
|
|
# command: [nginx-debug, '-g', 'daemon off;']
|
2021-03-19 18:09:59 +00:00
|
|
|
volumes:
|
|
|
|
- ./Resources/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
2021-03-22 18:31:59 +00:00
|
|
|
- ./Resources/nginx/ssl:/ssl:ro
|
2021-08-31 11:44:01 +00:00
|
|
|
- graphql_cache:/tmp/cache
|
2021-03-08 21:48:16 +00:00
|
|
|
graphql-engine:
|
2024-01-09 19:46:53 +00:00
|
|
|
image: hasura/graphql-engine:v2.36.1-ce
|
2021-03-08 21:48:16 +00:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
depends_on:
|
|
|
|
- "db"
|
|
|
|
restart: always
|
|
|
|
environment:
|
2021-05-14 17:48:14 +00:00
|
|
|
HASURA_GRAPHQL_DATABASE_URL: postgres://${POSTGRES_USER:-ash}:${POSTGRES_PASSWORD:-pokemon}@db:5432/${POSTGRES_DB:-pokeapi}
|
2021-03-08 21:48:16 +00:00
|
|
|
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
|
|
|
|
HASURA_GRAPHQL_DEV_MODE: "false"
|
2021-08-31 10:19:20 +00:00
|
|
|
HASURA_GRAPHQL_LOG_LEVEL: "warn"
|
2021-03-08 21:48:16 +00:00
|
|
|
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
|
2021-05-14 17:48:14 +00:00
|
|
|
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET:-pokemon}
|
2021-03-08 21:48:16 +00:00
|
|
|
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: anon
|
|
|
|
HASURA_GRAPHQL_ENABLE_TELEMETRY: "false"
|
2021-03-19 18:09:59 +00:00
|
|
|
# HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
|
2021-03-08 21:48:16 +00:00
|
|
|
|
2016-07-07 12:23:59 +00:00
|
|
|
volumes:
|
|
|
|
pg_data:
|
|
|
|
redis_data:
|
2021-08-31 11:44:01 +00:00
|
|
|
graphql_cache:
|