-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Included option to run integration tests locally (#1361)
* Included option to integration tests locally - Included an option to run integration tests locally. Signed-off-by: naveensrinivasan <[email protected]> * Improve integration test setup Signed-off-by: naveensrinivasan <[email protected]> * Code review comments. Signed-off-by: naveensrinivasan <[email protected]> --------- Signed-off-by: naveensrinivasan <[email protected]>
- Loading branch information
1 parent
a20dbc7
commit 2af1cc4
Showing
2 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
version: "3.8" | ||
|
||
volumes: | ||
arangodb_data_container: | ||
arangodb_apps_data_container: | ||
prometheus_data: | ||
grafana_data: | ||
|
||
services: | ||
|
||
postgres: | ||
image: postgres:15 | ||
environment: | ||
POSTGRES_USER: guac | ||
POSTGRES_PASSWORD: guac | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
networks: [frontend] | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- ./container_files/pg:/var/lib/postgresql/data | ||
|
||
guac-graphql: | ||
image: "local-organic-guac" | ||
command: "/opt/guac/guacgql --gql-debug --gql-backend arango" | ||
working_dir: /guac | ||
restart: on-failure | ||
depends_on: | ||
arangodb: | ||
condition: service_healthy | ||
ports: | ||
- "$GUAC_API_PORT:8080" | ||
volumes: | ||
- ./container_files/guac:/guac | ||
healthcheck: | ||
test: ["CMD", "wget", "--spider", "http://localhost:8080"] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 3 | ||
start_period: 5s | ||
|
||
arangodb: | ||
image: arangodb:latest | ||
environment: | ||
ARANGO_ROOT_PASSWORD: test123 | ||
ports: | ||
- 8529:8529 | ||
volumes: | ||
- arangodb_data_container:/var/lib/arangodb3 | ||
- arangodb_apps_data_container:/var/lib/arangodb3-apps | ||
healthcheck: | ||
test: ["CMD", "wget", "--spider", "http://localhost:8529"] | ||
interval: 10s | ||
timeout: 10s | ||
retries: 3 | ||
start_period: 1s | ||
networks: | ||
frontend: | ||
driver: bridge |