Try to fix anon in a different way to fix gha tests

This commit is contained in:
arttu
2024-07-09 23:30:42 +03:00
parent 567ddc4301
commit 27e81367ce
+3 -3
View File
@@ -1,7 +1,7 @@
# For running with anonymous data, for e2e tests in local or github actions # For running with anonymous data, for e2e tests in local or github actions
services: services:
frontend: frontend:
container_name: nowdb-frontend-dev container_name: nowdb-frontend-anon
image: node:20-alpine3.16 image: node:20-alpine3.16
volumes: volumes:
- ./frontend/:/usr/src/app - ./frontend/:/usr/src/app
@@ -10,12 +10,12 @@ services:
command: > command: >
sh -c "cd /usr/src/app && npm ci && npm run dev -- --host" sh -c "cd /usr/src/app && npm ci && npm run dev -- --host"
backend: backend:
container_name: nowdb-backend-dev container_name: nowdb-backend-anon
image: node:20-alpine3.16 image: node:20-alpine3.16
env_file: .anon.env env_file: .anon.env
volumes: volumes:
- ./backend/:/usr/src/app/backend/ - ./backend/:/usr/src/app/backend/
- ./frontend/src/validators:/usr/src/app/frontend/src/validators - ./frontend/src/:/usr/src/app/frontend/src/
ports: ports:
- 127.0.0.1:4000:4000 - 127.0.0.1:4000:4000
command: > command: >