mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
4175b53395
We were previously using the Docker Compose file in the root directory for manual testing _and_ the server API tests. This splits them so we can e.g. add Yugabyte for easy manual testing. In the future, this will also allow us to use ephemeral ports for API test databases, while keeping the fixed ports for manual testing. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7524 GitOrigin-RevId: 7244e296b0ed0ace9782b6f44f321933a9d9a49d
79 lines
1.8 KiB
YAML
79 lines
1.8 KiB
YAML
version: "3.6"
|
|
|
|
name: hge-api-tests
|
|
|
|
services:
|
|
postgres:
|
|
extends:
|
|
file: ../../../docker-compose/databases.yaml
|
|
service: postgres
|
|
ports:
|
|
- "65002:5432"
|
|
environment:
|
|
POSTGRES_USER: "hasura"
|
|
POSTGRES_PASSWORD: "hasura"
|
|
POSTGRES_DB: "hasura"
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
- ../../../docker-compose/postgres/init.sh:/docker-entrypoint-initdb.d/init-hasura.sh:ro
|
|
|
|
citus:
|
|
extends:
|
|
file: ../../../docker-compose/databases.yaml
|
|
service: citus
|
|
ports:
|
|
- "65004:5432"
|
|
environment:
|
|
POSTGRES_USER: "hasura"
|
|
POSTGRES_PASSWORD: "hasura"
|
|
POSTGRES_DB: "hasura"
|
|
volumes:
|
|
- citus-data:/var/lib/postgresql/data
|
|
- ../../../docker-compose/postgres/init.sh:/docker-entrypoint-initdb.d/init-hasura.sh:ro
|
|
|
|
cockroach:
|
|
extends:
|
|
file: ../../../docker-compose/databases.yaml
|
|
service: cockroach
|
|
ports:
|
|
- "65008:26257"
|
|
environment:
|
|
COCKROACH_USER: "root"
|
|
COCKROACH_DATABASE: "hasura"
|
|
volumes:
|
|
- cockroach-data:/cockroach/cockroach-data
|
|
|
|
sqlserver:
|
|
extends:
|
|
file: ../../../docker-compose/databases.yaml
|
|
service: sqlserver
|
|
ports:
|
|
- "65003:1433"
|
|
volumes:
|
|
- mssql-data:/var/opt/mssql
|
|
|
|
sqlserver-healthcheck:
|
|
extends:
|
|
file: ../../../docker-compose/databases.yaml
|
|
service: sqlserver-healthcheck
|
|
depends_on:
|
|
sqlserver:
|
|
condition: service_started
|
|
|
|
dc-reference-agent:
|
|
extends:
|
|
file: ../../../dc-agents/docker-compose.yaml
|
|
service: dc-reference-agent
|
|
|
|
dc-sqlite-agent:
|
|
extends:
|
|
file: ../../../dc-agents/docker-compose.yaml
|
|
service: dc-sqlite-agent
|
|
|
|
volumes:
|
|
citus-data:
|
|
cockroach-data:
|
|
mariadb-data:
|
|
mssql-data:
|
|
postgres-data:
|