mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
fixed default docker compose to match the new Dockerfile implementations
This commit is contained in:
committed by
Aaro Koivukangas
parent
7cdf509940
commit
2dc6172ffd
+16
-11
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user