forked from douglaszuqueto/esp8266-rfid-banco-de-dados
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (50 loc) · 981 Bytes
/
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
version: '3'
# Named volumes
volumes:
# MySQL Data
rfid-mysql-data:
driver: local
services:
# Client
client:
image: abiosoft/caddy
container_name: rfid-client
volumes:
- ./client:/srv
ports:
- "80:2015"
# WebService - NodeJS
server:
image: ambientum/node
container_name: rfid-server
command: node index.js
volumes:
- ./server/nodejs:/var/www/app
ports:
- "3000:3000"
links:
- mysql
depends_on:
- mysql
# WebService - Python
# server:
# container_name: rfid-server
# volumes:
# - ./server/python:/var/www/app
# ports:
# - "3000:3000"
# links:
# - mysql
# MySQL (5.7)
mysql:
image: ambientum/mysql:5.7
container_name: rfid-mysql
volumes:
- rfid-mysql-data:/var/lib/mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=rfid
- MYSQL_USER=rfid
- MYSQL_PASSWORD=rfid