-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (63 loc) · 1.75 KB
/
docker-compose.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.1'
services:
nginx:
build: ./nginx
ports:
- "80:80"
volumes:
# for local development the volume mapping changes
# - "/home/niranjan/repos/eensymachines.in/luminapi/nginx/luminapp:/var/www/luminapp"
- "${HOSTSRCDIR}:/var/www/luminapp"
# now that the server needs to know where the pages are
depends_on:
- "luminapi"
mosquitto:
image: eclipse-mosquitto
ports:
- "1883:1883"
volumes:
# this is where the config is being generated from, so this volume map is important
# https://blog.feabhas.com/2020/02/running-the-eclipse-mosquitto-mqtt-broker-in-a-docker-container/
# http://www.steves-internet-guide.com/mqtt-username-password-example/#:~:text=You%20will%20need%20to%20copy,to%20set%20the%20password_file%20path.
- ./mosquitto:/mosquitto
stdin_open: true
tty: true
container_name: mosquitto_broker
srvmongo:
image: mongo:4.2-bionic
ports:
- 37017:27017
volumes:
- /data/db:/data/db
tty: true
stdin_open: true
container_name: authapi_mongo
luminapi:
build:
context: .
dockerfile: ./Dockerfile
args:
- SRC=${SRCDIR}
- LOG=${LOGDIR}
- RUN=${RUNDIR}
- ETC=${ETCDIR}
- BIN=${BINDIR}
volumes:
- ${LOGDIR}:${LOGDIR}
- "${HOSTSRCDIR}/pages:/var/www/luminapp/pages"
ports:
- 8080:8080
environment:
- LOGF=${LOGDIR}/lumin.log
stdin_open: ${TTYSTDIN}
tty: ${TTYSTDIN}
links:
- "mosquitto"
- "srvmongo"
secrets:
- mqtt_secret
container_name: contn_luminapi
entrypoint: ["${BINDIR}/luminapi","-flog=${FLOG}", "-verbose=${VERBOSE}"]
secrets:
mqtt_secret:
file: ./mqtt.secret