mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
37 lines
771 B
YAML
37 lines
771 B
YAML
# Static builds, but for running locally
|
|
services:
|
|
frontend:
|
|
container_name: nowdb-frontend
|
|
env_file: .env
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
args:
|
|
BACKEND_URL: http://localhost:4000
|
|
ENABLE_WRITE: true
|
|
RUNNING_ENV: prod
|
|
GEONAMES_USERNAME: '${GEONAMES_USERNAME}'
|
|
ports:
|
|
- 127.0.0.1:5173:5173
|
|
|
|
backend:
|
|
container_name: nowdb-backend
|
|
env_file: .env
|
|
build:
|
|
context: .
|
|
dockerfile: ./backend/Dockerfile
|
|
target: node-run
|
|
ports:
|
|
- 127.0.0.1:4000:4000
|
|
|
|
db:
|
|
container_name: nowdb-db
|
|
image: mariadb:11.4.3
|
|
env_file: .env
|
|
volumes:
|
|
- ./data/:/docker-entrypoint-initdb.d
|
|
- nowdb-db:/var/lib/mysql/data
|
|
|
|
volumes:
|
|
nowdb-db:
|