forked from dcai/airnotifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 761 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 761 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
# After staring container, don't forget to install db :
# docker exec -it airnotifier python /airnotifier/install.py
version: "3"
services:
mongodb:
image: mongo:latest
container_name: mongodb
ports:
- 27017:27017
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/tmp/mongo/mongo.log
volumes:
- ./mongo/data:/data/db
- ./mongo/log:/tmp/mongo
command: mongod --logpath=/dev/null # --quiet
airnotifier:
links:
- mongodb
depends_on:
- mongodb
build: .
container_name: airnotifier
volumes:
- ./certs:/var/airnotifier/pemdir
- ./logs:/var/log/airnotifier
ports:
- 8801:8801
environment:
- MONGO_SERVER=mongodb
- MONGO_PORT=27017