Files
nowdatabase/docker-compose.yml
T

29 lines
594 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: backend/
env_file: .db.env
ports:
- 4000:4000
db:
container_name: nowdb-db
image: mariadb
env_file: .db.dev.env
volumes:
- ./data/:/docker-entrypoint-initdb.d
- nowdb-db:/var/lib/mysql/data
volumes:
nowdb-db: