mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
30 lines
668 B
YAML
30 lines
668 B
YAML
services:
|
|
now-db-frontend:
|
|
container_name: nowdb-frontend
|
|
image: node:20-alpine3.16
|
|
volumes:
|
|
- ./frontend/:/usr/src/app
|
|
ports:
|
|
- 5173:5173
|
|
command: >
|
|
sh -c "cd /usr/src/app && npm ci && npm run dev -- --host"
|
|
now-db-backend:
|
|
container_name: nowdb-backend
|
|
image: node:20-alpine3.16
|
|
volumes:
|
|
- ./backend/:/usr/src/app
|
|
ports:
|
|
- 4000:4000
|
|
command: >
|
|
sh -c "cd /usr/src/app && npm ci && npm run dev"
|
|
env_file: .db.dev.env
|
|
now-db:
|
|
container_name: nowdb-db
|
|
image: mariadb
|
|
env_file: .db.dev.env
|
|
volumes:
|
|
- ./data/:/docker-entrypoint-initdb.d
|
|
volumes:
|
|
nowdb-db:
|
|
|