fixed default docker compose to match the new Dockerfile implementations

This commit is contained in:
Aaro Koivukangas
2024-09-22 23:23:21 +03:00
committed by Aaro Koivukangas
parent 7cdf509940
commit 2dc6172ffd
+16 -11
View File
@@ -2,29 +2,34 @@
services:
frontend:
container_name: nowdb-frontend
build:
context: frontend/
volumes:
- ./frontend/:/usr/src/app
ports:
- 5173:5173
environment:
- BACKEND_URL=http://localhost:4000
env_file: .env
build:
context: ./frontend
dockerfile: Dockerfile
args:
BACKEND_URL: http://localhost:4000
ENABLE_WRITE: true
RUNNING_ENV: prod
ports:
- 127.0.0.1:5173:5173
backend:
container_name: nowdb-backend
env_file: .env
build:
context: .
dockerfile: ./backend/Dockerfile
env_file: .env
target: node-run
ports:
- 4000:4000
- 127.0.0.1:4000:4000
db:
container_name: nowdb-db
image: mariadb
image: mariadb:11.4.3
env_file: .env
volumes:
- ./data/:/docker-entrypoint-initdb.d
- nowdb-db:/var/lib/mysql/data
volumes:
nowdb-db: