forked from eclipse-arrowhead/core-java-spring
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 1.66 KB
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
version: "3"
services:
arrowhead_core_mysql:
container_name: arrowhead_core_mysql
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=THIS_WILL_BE_YOUR_CONTAINERS_ROOT_PW
volumes:
- arrowhead_core_mysql:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d/
ports:
- 3306:3306
arrowhead_core:
container_name: arrowhead_core
build: ../
depends_on:
- arrowhead_core_mysql
environment:
- JVM_FLAGS=-XX:+UseSerialGC -Xmx1G -Xms32m # Lowers memory usage of the services, but also lowers performance.
volumes:
# Only systems with provided .properties files will be started when the container stars.
- ./properties/serviceregistry.properties:/opt/arrowhead-core/serviceregistry/application.properties
- ./properties/authorization.properties:/opt/arrowhead-core/authorization/application.properties
- ./properties/orchestrator.properties:/opt/arrowhead-core/orchestrator/application.properties
#- ./properties/eventhandler.properties:/opt/arrowhead-core/eventhandler/application.properties
- ./properties/gatekeeper.properties:/opt/arrowhead-core/gatekeeper/application.properties
- ./properties/gateway.properties:/opt/arrowhead-core/gateway/application.properties
- ./properties/certificateauthority.properties:/opt/arrowhead-core/certificate-authority/application.properties
ports:
- 8443:8443 # Service Registry
- 8445:8445 # Authorization
- 8441:8441 # Orchestrator
#- 8455:8455 # Event Handler
- 8449:8449 # Gatekeeper
- 8453:8453 # Gateway
- 8448:8448 # Certificate Authority
volumes:
arrowhead_core_mysql:
external: true