mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
cca591a7f9
This changes our test configuration to use the PostgreSQL 16 image from `postgis/postgis`. In addition, it bumps PostGIS to v3.4 (from v3.3). PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10361 GitOrigin-RevId: 883c96d8453efb42b226f849891488382a99c80c
112 lines
2.7 KiB
YAML
112 lines
2.7 KiB
YAML
version: "3.6"
|
|
|
|
services:
|
|
postgres:
|
|
image: postgis/postgis:16-3.4-alpine
|
|
platform: linux/amd64
|
|
command:
|
|
- -F # turn fsync off for speed
|
|
- -N 1000 # increase max connections from 100 so we can run more HGEs
|
|
ports:
|
|
- 5432
|
|
environment:
|
|
POSTGRES_PASSWORD: "password" # you probably want to override this
|
|
volumes:
|
|
- /var/lib/postgresql/data
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- psql -U "$${POSTGRES_USER:-postgres}" < /dev/null && sleep 5 && psql -U "$${POSTGRES_USER:-postgres}" < /dev/null
|
|
start_period: 5s
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 20
|
|
|
|
citus:
|
|
image: citusdata/citus:11.3.0
|
|
platform: linux/amd64
|
|
command:
|
|
- -F # turn fsync off for speed
|
|
- -N 1000 # increase max connections from 100 so we can run more HGEs
|
|
- "-cclient_min_messages=error"
|
|
ports:
|
|
- 5432
|
|
environment:
|
|
POSTGRES_PASSWORD: "password" # you probably want to override this
|
|
volumes:
|
|
- /var/lib/postgresql/data
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- psql -U "$${POSTGRES_USER:-postgres}" < /dev/null && sleep 5 && psql -U "$${POSTGRES_USER:-postgres}" < /dev/null
|
|
start_period: 5s
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 20
|
|
|
|
cockroach:
|
|
image: cockroachdb/cockroach:latest-v22.2
|
|
command:
|
|
- start-single-node
|
|
- --insecure
|
|
- --accept-sql-without-tls
|
|
init: true # doesn't shut down properly without this
|
|
ports:
|
|
- 26257
|
|
volumes:
|
|
- /cockroach/cockroach-data
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- cockroach sql --insecure --execute "select 1;"
|
|
start_period: 5s
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 20
|
|
|
|
yugabyte:
|
|
image: yugabytedb/yugabyte
|
|
command:
|
|
- bin/yugabyted
|
|
- start
|
|
- --daemon=false
|
|
- --initial_scripts_dir=/
|
|
ports:
|
|
- "65009:5433"
|
|
environment:
|
|
YSQL_USER: "hasura"
|
|
YSQL_PASSWORD: "hasura"
|
|
YSQL_DB: "hasura"
|
|
volumes:
|
|
- /var/lib/postgresql/data
|
|
|
|
sqlserver:
|
|
image: mcr.microsoft.com/mssql/server:2019-latest
|
|
platform: linux/amd64
|
|
ports:
|
|
- 1433
|
|
environment:
|
|
ACCEPT_EULA: "Y"
|
|
SA_PASSWORD: "Password!"
|
|
MSSQL_SA_PASSWORD: "Password!"
|
|
volumes:
|
|
- /var/opt/mssql
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- |
|
|
/opt/mssql-tools/bin/sqlcmd -U SA -P "$$SA_PASSWORD"
|
|
start_period: 5s
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 20
|
|
|
|
mysql:
|
|
image: mysql
|
|
command: --default-authentication-plugin=mysql_native_password
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: Password123#
|
|
ports:
|
|
- "3306:3306"
|