-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 815 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (35 loc) · 815 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
36
37
38
39
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8009:8009"
environment:
- NODE_ENV=production
- mongoPath=${MONGO_PATH:-mongodb://mongo:27017/autopilot}
depends_on:
- mongo
restart: unless-stopped
networks:
- app-network
mongo:
image: mongo:6.0
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
- ./mongo-init:/docker-entrypoint-initdb.d
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USERNAME:-admin}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD:-password}
- MONGO_INITDB_DATABASE=${MONGO_DB_NAME:-autopilot}
restart: unless-stopped
networks:
- app-network
volumes:
mongo_data:
networks:
app-network:
driver: bridge