my-notes-viewer/docker-compose.cypress.yml

66 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2021-09-14 14:45:47 +02:00
version: "3.9"
services:
maildev:
image: maildev/maildev
command:
[
node,
bin/maildev,
--web,
"80",
--smtp,
"25",
-v,
--hide-extensions=STARTTLS,
]
mongo:
image: mongo
2022-02-26 11:09:53 +01:00
tibi-server:
image: registry.webmakers.de/tibi/tibi-server
2021-09-14 14:45:47 +02:00
environment:
DB_DIAL: mongodb://mongo
API_PORT: 8080
MAIL_HOST: maildev:25
depends_on:
- maildev
- mongo
volumes:
- ./:/workdir
liveserver:
image: node
2022-02-26 11:09:53 +01:00
command: yarn run -- live-server --no-browser --port=80 --ignore='*' --entry-file=spa.html --no-css-inject --proxy=/api:http://tibi-server:8080/api/v1/_/einfo_test dist
2021-09-14 14:45:47 +02:00
depends_on:
2022-02-26 11:09:53 +01:00
- tibi-server
2021-09-14 14:45:47 +02:00
volumes:
- ./:/workdir
working_dir: /workdir
cypress:
#image: cypress/base
image: cypress/browsers:node14.17.0-chrome91-ff89
environment:
FORCE_COLOR: "true"
CYPRESS_BASE_URL: http://liveserver
CYPRESS_CI: "true"
CYPRESS_mongodbUri: mongodb://mongo
2022-02-26 11:09:53 +01:00
CYPRESS_tibiApiUrl: http://tibi-server:8080/api/v1
2021-09-14 14:45:47 +02:00
CYPRESS_projectApiConfig: /workdir/api/config.yml
2022-02-26 11:39:25 +01:00
#DISPLAY: host.docker.internal:0.0
DISPLAY: $DISPLAY
2021-09-14 14:45:47 +02:00
LIBGL_ALWAYS_INDIRECT: 1
command: sh ./scripts/cy-command.docker.sh $CY_COMMAND
#command: yarn cy:$CY_COMMAND
depends_on:
- liveserver
volumes:
- ./:/workdir
- ~/.cache:/home/node/.cache
2022-02-26 11:39:25 +01:00
- $HOME/.Xauthority:$HOME/.Xauthority
- /tmp/.X11-unix:/tmp/.X11-unix
2021-09-14 14:45:47 +02:00
working_dir: /workdir
user: $CURRENT_UID