72 lines
2.3 KiB
YAML
72 lines
2.3 KiB
YAML
version: "3.9"
|
|
|
|
services:
|
|
maildev:
|
|
image: maildev/maildev
|
|
command: [node, bin/maildev, --web, "80", --smtp, "25", -v, --hide-extensions=STARTTLS]
|
|
expose:
|
|
- 1080
|
|
|
|
mongo:
|
|
image: mongo:4.2
|
|
|
|
tibi-server:
|
|
image: gitbase.de/cms/tibi-server
|
|
environment:
|
|
DB_DIAL: mongodb://mongo
|
|
API_PORT: 8080
|
|
MAIL_HOST: maildev:25
|
|
depends_on:
|
|
- maildev
|
|
- mongo
|
|
volumes:
|
|
- ./:/workdir
|
|
|
|
liveserver:
|
|
image: node:20
|
|
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 frontend
|
|
depends_on:
|
|
- tibi-server
|
|
volumes:
|
|
- ./:/workdir
|
|
working_dir: /workdir
|
|
|
|
playwright:
|
|
image: mcr.microsoft.com/playwright:focal
|
|
environment:
|
|
FORCE_COLOR: "true"
|
|
PLAYWRIGHT_BASE_URL: http://liveserver
|
|
PLAYWRIGHT_CI: "true"
|
|
PLAYWRIGHT_mongodbUri: mongodb://mongo
|
|
PLAYWRIGHT_tibiApiUrl: http://tibi-server:8080/api/v1
|
|
PLAYWRIGHT_projectApiConfig: /workdir/api/config.yml
|
|
DISPLAY: display:0
|
|
PLAYWRIGHT_CACHE_FOLDER: /.cache/Playwright
|
|
command: sh ./scripts/py-command.docker.sh $PY_MODE $PY_SPECFLAG
|
|
depends_on:
|
|
- liveserver
|
|
volumes:
|
|
- ./:/workdir
|
|
- ./tmp/.npm:/.npm
|
|
- ./tmp/.cache:/.cache
|
|
- ./tmp/.yarn:/.yarn
|
|
working_dir: /workdir
|
|
|
|
display:
|
|
image: ghcr.io/dtinth/xtigervnc-docker:main
|
|
tmpfs: /tmp
|
|
restart: always
|
|
environment:
|
|
VNC_GEOMETRY: 1920x1080
|
|
|
|
novnc:
|
|
image: geek1011/easy-novnc
|
|
restart: always
|
|
command: -a :5800 -h display --no-url-password
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.services.${PROJECT_NAME}-playwright-novnc.loadbalancer.server.port=5800
|
|
- online.testversion.code.subdomain=${PROJECT_NAME}-playwright-novnc
|
|
- traefik.http.routers.${PROJECT_NAME}-playwright-novnc.middlewares=${PROJECT_NAME}-playwright-novnc
|
|
- traefik.http.middlewares.${PROJECT_NAME}-playwright-novnc.basicauth.usersfile=${PWD}/.basic-auth-code
|