-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3.9"
services:
mongo:
image: mongo:6.0
container_name: qbreader-mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=example
ports:
- "27017:27017"
volumes:
- ./db:/data/db
website:
build:
context: .
dockerfile: Dockerfile.website
container_name: qbreader-website
depends_on:
- mongo
environment:
- NODE_ENV=development
- PORT=3000
- SECRET_KEY_1=devSecret1
- SECRET_KEY_2=devSecret2
# Primary connection string for the app inside Docker
- MONGODB_URI=mongodb://qbreader:qbreader@mongo:27017/?authSource=admin
# Fallbacks (kept for compatibility with existing code)
- MONGODB_USERNAME=qbreader
- MONGODB_PASSWORD=qbreader
ports:
- "3000:3000"
volumes:
- ./website:/qbreader/website
command: >
sh -lc "ln -sfn /qbreader/node_modules /qbreader/website/node_modules;
npm run build &&
npm run webpack-watch &
sass --watch scss/light.scss:client/bootstrap/light.css scss/dark.scss:client/bootstrap/dark.css --style compressed &
node --watch index.js"