This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (52 loc) · 2.04 KB
/
docker-compose.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
version: "3"
services:
postgres:
image: postgis/postgis:16-3.4
#command: "-c log_statement=all"
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
dbmate:
image: ghcr.io/ninanor/fishboat-database-dbmate:main
build: db
environment:
DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres?sslmode=disable
graphql-engine:
image: hasura/graphql-engine:v2.36.0
restart: always
environment:
## postgres database to store Hasura metadata
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
## this env var can be used to add the above postgres database to Hasura as a data source. this can be removed/updated based on your needs
PG_DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres
## enable the console served by server
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
## enable debugging mode. It is recommended to disable this in production
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
## uncomment next line to run console offline (i.e load console assets from server instead of CDN)
HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
## uncomment next line to set an admin secret
#HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_PASSWORD}
postgrest:
image: postgrest/postgrest:v12.0.2
environment:
PGRST_DB_URI: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:5432/postgres"
PGRST_DB_ANON_ROLE: postgres # insecure
wizard:
image: ghcr.io/ninanor/fishboat-database-wizard:main
build:
context: wizard
environment:
PROCEDURE_URL: http://graphql-engine:8080/api/rest/import-data
LOGGING: DEBUG
tty: true
stdin_open: true
nginx:
image: ghcr.io/ninanor/fishboat-database-nginx:main
build: nginx
ports:
- 8000:80
volumes:
pgdata: