-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (51 loc) · 1.24 KB
/
docker-compose.yaml
File metadata and controls
54 lines (51 loc) · 1.24 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
42
43
44
45
46
47
48
49
50
51
52
53
54
services:
mongodb:
image: mongo:latest
container_name: mongodb-mongo-verba
ports:
- 27017:27017
environment:
MONGO_INITDB_DATABASE: mongo-verba
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
volumes:
- ./dev/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
backend:
image: node:22-alpine
container_name: backend-mongo-verba
ports:
- 3000:3000
environment:
NODE_ENV: development
DB_NAME: mongo-verba
MONGO_USERNAME: root
MONGO_PASSWORD: root
ENABLE_INSERT_QUOTE: true
depends_on:
- mongodb
command: npm run dev
working_dir: /app
volumes:
- ./backend:/app
healthcheck:
test: ['CMD', 'wget', '--spider', '--quiet', 'http://localhost:3000/health/liveness']
interval: 5s
timeout: 10s
retries: 3
frontend:
image: node:22-alpine
environment:
VITE_ENVIRONMENT: development
VITE_ENABLE_INSERT_QUOTE: true
container_name: frontend-mongo-verba
ports:
- 5173:5173
depends_on:
backend:
condition: service_healthy
command: npm run dev -- --host
working_dir: /app
volumes:
- ./frontend:/app
networks:
mongo-naga-net: