salix-front/docker-compose.e2e.local.yml

100 lines
2.9 KiB
YAML

version: '3.7'
services:
back:
image: registry.verdnatura.es/salix-back:25.08.0-build1314
# image: back_try
volumes:
- ./test/cypress/storage:/salix/storage
- ./test/cypress/back/datasources.json:/salix/loopback/server/datasources.json
depends_on:
- vn-database
# ports:
# - '3000:3000'
front:
image: alexmorenovn/vndev:latest
command: quasar dev
volumes:
- .:/app:delegated
working_dir: /app
environment:
- TZ=Europe/Madrid
# ports:
# - '9000:9000'
e2e:
image: cypress-setup:latest
command: sh -c "while [ ! -d node_modules/cypress ]; do sleep 1; done && pnpm exec cypress run --browser chromium --spec ${CYPRESS_SPEC:?}"
environment:
- TZ=Europe/Madrid
volumes:
- .:/app
working_dir: /app
cypress-setup:
image: cypress-setup:latest
build:
context: .
dockerfile: ./test/cypress/Dockerfile
command: sh -c "pnpm install --frozen-lockfile && pnpm exec cypress install"
volumes:
- .:/app:delegated
vn-database:
image: alexmorenovn/vn_db:latest
# ports:
# - '3306:3306'
# e2e:
# command: npx cypress run --browser chromium
# build:
# context: .
# dockerfile: ./Dockerfile.e2e
# volumes:
# - .:/app
# working_dir: /app
# front:
# # command: pnpx quasar dev
# # command: npx quasar serve --history --proxy ./proxy.mjs --hostname 127.0.0.1 --port 9000
# build:
# context: .
# dockerfile: ./Dockerfile.e2e
# network_mode: host
# e2e:
# command: pnpx cypress run --browser chromium
# build:
# context: .
# dockerfile: ./Dockerfile.e2e
# network_mode: host
# volumes:
# - ./node_modules:/app/node_modules
# db:
# image: db
# command: npx myt run -t --ci -d -n front_default
# build:
# context: .
# dockerfile: test/cypress/db/Dockerfile
# network_mode: host
# privileged: true
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# back:
# image: back
# build:
# context: ./salix
# dockerfile: salix/back/Dockerfile
# # depends_on:
# # - db
# ports:
# - 3000:3000
# - 5000:5000
# volumes:
# - ./test/cypress/storage:/salix/storage
# e2e-2:
# image: registry.verdnatura.es/salix-frontend:${VERSION:?}
# command: npx cypress run --config-file test/cypress/configs/cypress.config.2.js
# build:
# context: .
# dockerfile: ./Dockerfile.e2e
#