-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (26 loc) · 922 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
26 lines (26 loc) · 922 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
version: "3"
services:
db:
image: mongo:4.0
container_name: mtv-db
ports:
- "127.0.0.1:27018:27017"
# command: mongod --port 27017 --dbpath /mtv/db-instance/data --logpath /mtv/db-instance/log/db.log --fork
# command: bash -c "mongod --bind_ip_all --port 27017 --logpath /mtv/log/db.log --fork && tail -F xx"
# command: bash -c "mongod --bind_ip_all --port 27017 --logpath /mtv/log/db.log --fork && mongorestore --db mtv /mtv/dump/mtv/ && tail -F anything"
command: bash -c "mongod --bind_ip_all --port 27017 --logpath /mtv/log/db.log --fork && tail -F anything"
volumes:
- ./db-instance/data:/mtv/data
- ./db-instance/log:/mtv/log
- ./db-instance/dump:/mtv/dump
web:
image: mtv
# build: .
container_name: mtv
depends_on:
- db
ports:
- "3000:3000"
command: mtv run --env production -v --docker
# volumes:
# - .:/mtv