-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
49 lines (47 loc) · 1.13 KB
/
docker-compose.yaml
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
services:
app:
build:
context: .
dockerfile: dev.Dockerfile
cache_from:
- oven/bun:latest
ports:
- '3000:3000'
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
depends_on:
mongo:
condition: service_healthy
environment:
- NODE_ENV=development
- MONGO_URI=mongodb://mongo:27017/bmx-stack-development
- PORT=3000
restart: unless-stopped
command: bun --watch run dev
mongo:
image: mongo
restart: unless-stopped
ports:
- '27017:27017'
volumes:
- ./mongo-data:/data/db
command: mongod --logpath /dev/null --setParameter logLevel=0
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
mongo-express:
image: mongo-express
restart: unless-stopped
ports:
- '8081:8081'
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_BASICAUTH_USERNAME=dev
- ME_CONFIG_BASICAUTH_PASSWORD=dev
depends_on:
mongo:
condition: service_healthy