mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
30 lines
616 B
YAML
30 lines
616 B
YAML
# Static builds, but for running locally
|
|
services:
|
|
frontend:
|
|
container_name: nowdb-frontend
|
|
build:
|
|
context: frontend/
|
|
volumes:
|
|
- ./frontend/:/usr/src/app
|
|
ports:
|
|
- 5173:5173
|
|
environment:
|
|
- BACKEND_URL=http://localhost:4000
|
|
backend:
|
|
container_name: nowdb-backend
|
|
build:
|
|
context: .
|
|
dockerfile: ./backend/Dockerfile
|
|
env_file: .env
|
|
ports:
|
|
- 4000:4000
|
|
db:
|
|
container_name: nowdb-db
|
|
image: mariadb
|
|
env_file: .env
|
|
volumes:
|
|
- ./data/:/docker-entrypoint-initdb.d
|
|
- nowdb-db:/var/lib/mysql/data
|
|
volumes:
|
|
nowdb-db:
|