-
Notifications
You must be signed in to change notification settings - Fork 293
/
docker-compose.yml
49 lines (49 loc) · 1.5 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
# Docker compose file to manage your deployed images.
# Use MySQL server 8 and latest Scada-LTS local build.
# Using attached webapps folder as developer you will be able to modify the static content from host os.
# Attach shell to stop the tomcat instance and then you will be able to run in JPDA mode.
version: '3'
services:
database:
container_name: mysql
image: mysql/mysql-server:8.0.32
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=root
- MYSQL_PASSWORD=root
- MYSQL_DATABASE=scadalts
expose: ["3306"]
volumes:
- ./db_data:/var/lib/mysql:rw
- ./db_conf:/etc/mysql:ro
command: --log_bin_trust_function_creators=1
scadalts:
image: scadalts/scadalts:latest
environment:
- CATALINA_OPTS=-Xmx2G -Xms2G
ports:
- "8080:8080"
depends_on:
- database
expose: ["8080", "8000"]
volumes:
- ./tomcat_log:/usr/local/tomcat/logs:rw
links:
- database:database
command:
- /usr/bin/wait-for-it
- --host=database
- --port=3306
- --timeout=30
- --strict
- --
- /usr/local/tomcat/bin/catalina.sh
- run
mqtt:
image: hivemq/hivemq4:latest
ports:
- "8081:8080"
- "1883:1883"
expose: [ "8081", "1883" ]