salix-front/docker-compose.e2e.yml

51 lines
1.4 KiB
YAML

version: '3.7'
services:
front:
# command: npx 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
volumes:
- ./node_modules:/app/node_modules
e2e:
command: npx 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
#