-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 816 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (32 loc) · 816 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
version: "3.9"
services:
server:
command: npm run start
container_name: server
build: .
depends_on:
- mongo
restart: on-failure
tty: true
environment:
CONNECTION_STRING: mongodb://mongo
volumes:
- serverdata:/data/server
ports:
- 5000:5000
mongo:
image: mongo:latest
container_name: mongo
restart: on-failure
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: admin
ME_CONFIG_MONGODB_SERVER: mongo
ME_CONFIG_MONGODB_PORT: "27017"
volumes:
- mongodata:/data/db
ports:
- "0.0.0.0:27017:27017"
volumes:
serverdata:
mongodata: