zitadel/e2e/docker-compose-overwrite.yaml

47 lines
1002 B
YAML
Raw Normal View History

2022-07-07 17:28:46 +02:00
services:
zitadel:
image: 'zitadel:${BUILD_DATE}'
2022-07-25 15:24:16 +02:00
environment:
# TODO: ugly
ZITADEL_EXTERNALDOMAIN: zitadel
ZITADEL_S3DEFAULTINSTANCE_CUSTOMDOMAIN: zitadel
e2e-setup:
build:
dockerfile: ./build/e2e/Dockerfile
context: ..
container_name: e2e-setup
env_file:
- ./compose.env
environment:
ZITADEL_DATABASE_HOST: db
2022-07-25 15:51:33 +02:00
networks:
- 'zitadel'
volumes:
- ${PWD}/.keys/e2e.json:/.keys/e2e.json
2022-07-25 15:24:16 +02:00
depends_on:
zitadel:
# TODO: See PR #3816
# condition: 'service_healthy'
2022-07-25 15:51:33 +02:00
condition: service_started
2022-07-21 17:04:53 +02:00
e2e:
image: cypress/included:10.3.0
container_name: cypress
depends_on:
2022-07-25 15:24:16 +02:00
e2e-setup:
condition: 'service_completed_successfully'
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'
2022-07-25 16:33:53 +02:00