mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
35 lines
939 B
YAML
35 lines
939 B
YAML
# For running with anonymous data, for e2e tests in local or github actions
|
|
services:
|
|
frontend:
|
|
container_name: nowdb-frontend-dev
|
|
image: node:20-alpine3.16
|
|
volumes:
|
|
- ./frontend/:/usr/src/app
|
|
ports:
|
|
- 127.0.0.1:5173:5173
|
|
command: >
|
|
sh -c "cd /usr/src/app && npm ci && npm run dev -- --host"
|
|
backend:
|
|
container_name: nowdb-backend-dev
|
|
image: node:20-alpine3.16
|
|
env_file: .anon.env
|
|
volumes:
|
|
- ./backend/:/usr/src/app/backend/
|
|
- ./frontend/src/validators:/usr/src/app/frontend/src/validators
|
|
ports:
|
|
- 127.0.0.1:4000:4000
|
|
command: >
|
|
sh -c "cd /usr/src/app/backend && npm ci && npm run dev"
|
|
db-anon:
|
|
container_name: nowdb-db-anon
|
|
image: mariadb
|
|
env_file: .anon.env
|
|
volumes:
|
|
- ./test_data/:/docker-entrypoint-initdb.d
|
|
- nowdb-db-anon:/var/lib/mysql/data
|
|
ports:
|
|
- 127.0.0.1:3306:3306
|
|
volumes:
|
|
nowdb-db-anon:
|
|
|