zitadel/e2e/docker-compose-overwrite.yaml
2022-07-28 15:26:16 +02:00

44 lines
1.0 KiB
YAML

services:
zitadel:
image: 'ghcr.io/zitadel/zitadel:v2.0.0-v2-alpha.44-amd64'
command: 'start-from-init --masterkey "MasterkeyNeedsToHave32Characters" --tlsMode disabled'
environment:
# TODO: ugly
ZITADEL_EXTERNALDOMAIN: zitadel
ZITADEL_S3DEFAULTINSTANCE_CUSTOMDOMAIN: zitadel
depends_on:
db-initialize:
condition: service_completed_successfully
db:
volumes:
- ${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/\"\'"
depends_on:
db:
condition: service_healthy
e2e:
image: cypress/included:10.3.0
container_name: cypress
depends_on:
- zitadel
env_file:
- ./compose.env
working_dir: /e2e
entrypoint:
- bash
- -c
command:
- ./cypress.sh run
volumes:
- ${PWD}/.keys/e2e.json:/.keys/e2e.json
- ${PWD}/console:/e2e
networks:
- 'zitadel'