-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
50 lines (47 loc) · 1.43 KB
/
docker-compose.dev.yml
File metadata and controls
50 lines (47 loc) · 1.43 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
services:
koolbot:
build:
context: .
dockerfile: Dockerfile.dev
container_name: koolbot-dev
volumes:
- .:/app
- /app/node_modules
env_file:
- .env
networks:
- koolbot-network
depends_on:
- mongodb
stop_grace_period: 30s
stop_signal: SIGTERM
# Publish port 3000 in dev so you can hit /health and the admin Web UI
# (when WEBUI_ENABLED=true in .env) from your host browser at
# http://localhost:3000. Set WEBUI_BASE_URL=http://localhost:3000.
ports:
- "3000:3000"
mongodb:
image: mongo:latest
container_name: koolbot-mongodb-dev
restart: unless-stopped
volumes:
- mongodb_data_dev:/data/db
# ⚠️ DEV ONLY — publishes MongoDB to the host so you can connect with
# Compass / mongosh from your workstation. The bind below is
# localhost-only (127.0.0.1), so it's reachable from the host itself
# but not from the LAN or the public internet. The default mongo
# image has NO authentication, so anyone with local access to the
# host can still read and write the entire database. Do NOT use
# docker-compose.dev.yml in production. The production
# docker-compose.yml deliberately does not publish 27017.
ports:
- "127.0.0.1:27017:27017"
networks:
- koolbot-network
stop_grace_period: 30s
stop_signal: SIGTERM
volumes:
mongodb_data_dev:
networks:
koolbot-network:
driver: bridge