-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-old.txt
58 lines (50 loc) · 1.68 KB
/
docker-compose-old.txt
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
version: '3'
services:
mosquitto:
container_name: mqtt
image: eclipse-mosquitto
network_mode: host
ports:
- 1883:1883
- 8883:8883
volumes:
- ./mosquitto/conf:/mosquitto/conf
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
restart: unless-stopped
mysql-server:
image: mysql:5.7
hostname: mysql-server
environment:
MYSQL_ROOT_PASSWORD: userpass
volumes:
- ./db/dumps:/docker-entrypoint-initdb.d
- ./db/data:/var/lib/mysql
networks:
- NurseSystem-net
mysql-admin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: mysql-server
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: userpass
networks:
- NurseSystem-net
depends_on:
- mysql-server
ports:
- "8001:80"
node-backend:
image: abassi/nodejs-server:10.0-dev
volumes:
- ./src/backend:/home/node/app/src
networks:
- NurseSystem-net
depends_on:
- mysql-admin
ports:
- "8000:3000"
command: bash -c "npm install mqtt --save && sleep 50 && nodemon /home/node/app/src/index.js"
networks:
NurseSystem-net:
driver: bridge