forked from Osama-Yusouf/BDIE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (34 loc) · 981 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (34 loc) · 981 Bytes
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
services:
bdie:
build:
context: .
dockerfile: Dockerfile
container_name: bdie-app
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_TELEMETRY_DISABLED=1
# Optional: un-comment and set if you connect a real MongoDB
# - MONGODB_URI=mongodb://mongo:27017/bdie
volumes:
# Persist the JSON data store
- bdie-data:/app/data
restart: unless-stopped
healthcheck:
test: [ "CMD", "wget", "-qO-", "http://localhost:3000/api/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
# ── Optional MongoDB (un-comment to use a real DB) ──────────────────────────
# mongo:
# image: mongo:7-jammy
# container_name: bdie-mongo
# environment:
# MONGO_INITDB_DATABASE: bdie
# volumes:
# - mongo-data:/data/db
# restart: unless-stopped
volumes:
bdie-data: # mongo-data: