forked from SCADA-LTS/Scada-LTS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.21 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
# Docker compose file to manage your deployed images.
# Use MySQL server 5.7 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:5.7
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=root
- MYSQL_PASSWORD=root
- MYSQL_DATABASE=scadalts
expose: ["3306"]
volumes:
- ./docker/volumes/databases:/home/
scadalts:
image: scadalts/scadalts:latest
environment:
- CATALINA_OPTS=-Xmx512m -Xms512m
ports:
- "8080:8080"
depends_on:
- database
expose: ["8080", "8000"]
links:
- database:database
command:
- /usr/bin/wait-for-it
- --host=database
- --port=3306
- --timeout=30
- --strict
- --
- /usr/local/tomcat/bin/catalina.sh
- run