forked from GRIDAPPSD/gridappsd-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (63 loc) · 2.36 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
65
66
67
68
69
70
71
72
73
version: '2'
services:
blazegraph:
image: lyrasis/blazegraph:2.1.4
ports:
- 8889:8080
volumes:
# Should match what is in run-example.sh
- ./gridappsd/blazegraph/data:/data
- ./conf/rwstore.properties:/RWStore.properties
mysql:
image: mysql/mysql-server:5.7
ports:
- 3306:3306
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_PORT: 3306
volumes:
- ./gridappsdmysql:/var/lib/mysql
- ./dumps/gridappsd_mysql_dump.sql:/docker-entrypoint-initdb.d/schema.sql:ro
viz:
image: gridappsd/viz${GRIDAPPSD_TAG}
ports:
- 8080:8082
depends_on:
- gridappsd
gridappsd:
image: gridappsd/gridappsd${GRIDAPPSD_TAG}
ports:
# Each of the following are port mappings from the host into the
# container. The first three are used by GridAPPS-D for the different
# protocols.
- 61613:61613
- 61614:61614
- 61616:61616
# Uncomment to allow debugging on this port
- 8000:8000
# Add debugging to your application via the following port
- 8888:8888
working_dir: /gridappsd
environment:
- PATH=/gridappsd/bin:/gridappsd/lib:/gridappsd/services/fncsgossbridge/service:$PATH
# Debugging is only necessary if you intend to remote debug the GridAPPS-D process iself.
# Turning this on will allow the user to remote debug the gridappsd server on port 8000.
- DEBUG=1
# The following allow applications to be mounted into the container so that
# gridappsd can start them in the correct context.
#
# The format is local_path:container_path where local_path is on the host machine and the
# container_dir is inside the container. The paths can be either a file or a directory. In
# order for gridappsd to recognize it as an application the container path must be inside
# the /gridappsd/applications. For services the container path must be inside /gridappsd/services.
#
# The following assumes you have cloned/downloaded the sample app in a sibling folder of this
# repository. Once uncommenting the three lines below the sample_app will be available in the
# container
#
# volumes:
# - ~/git/gridappsd-sample-app/sample_app:/gridappsd/applications/sample_app
# - ~/git/gridappsd-sample-app/sample_app/sample_app.config:/gridappsd/applications/sample_app.config
depends_on:
- mysql
- blazegraph