zitadel/e2e/docker-compose-overwrite.yaml

44 lines
1.0 KiB
YAML
Raw Normal View History

2022-07-07 17:28:46 +02:00
services:
zitadel:
2022-07-28 15:26:16 +02:00
image: 'ghcr.io/zitadel/zitadel:v2.0.0-v2-alpha.44-amd64'
command: 'start-from-init --masterkey "MasterkeyNeedsToHave32Characters" --tlsMode disabled'
2022-07-25 15:24:16 +02:00
environment:
# TODO: ugly
ZITADEL_EXTERNALDOMAIN: zitadel
ZITADEL_S3DEFAULTINSTANCE_CUSTOMDOMAIN: zitadel
2022-07-28 15:26:16 +02:00
depends_on:
db-initialize:
condition: service_completed_successfully
db:
2022-07-25 15:51:33 +02:00
volumes:
2022-07-28 15:26:16 +02:00
- ${PWD}/e2e/dbdump:/cockroach/cockroach-data/extern/dbdump
db-initialize:
networks:
- 'zitadel'
image: 'cockroachdb/cockroach:v22.1.0'
command: "sql --host db --insecure --execute=\'RESTORE FROM \"nodelocal://0/dbdump/\"\'"
2022-07-25 15:24:16 +02:00
depends_on:
2022-07-28 15:26:16 +02:00
db:
condition: service_healthy
2022-07-21 17:04:53 +02:00
e2e:
image: cypress/included:10.3.0
container_name: cypress
depends_on:
2022-07-28 15:26:16 +02:00
- zitadel
2022-07-25 15:51:33 +02:00
env_file:
- ./compose.env
2022-07-21 17:04:53 +02:00
working_dir: /e2e
2022-07-25 16:33:53 +02:00
entrypoint:
- bash
- -c
command:
- ./cypress.sh run
2022-07-21 17:04:53 +02:00
volumes:
2022-07-25 16:33:53 +02:00
- ${PWD}/.keys/e2e.json:/.keys/e2e.json
- ${PWD}/console:/e2e
2022-07-25 15:24:16 +02:00
networks:
2022-07-25 15:51:33 +02:00
- 'zitadel'