Skip to content

Commit

Permalink
Updates docker compose files to use server port env (eclipse-basyx#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronzi authored Jun 17, 2024
1 parent 5001025 commit 152e551
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ services:
- "8050:8080"
environment:
SERVER_SERVLET_CONTEXT_PATH: /
SERVER_PORT: 8080
restart: always
networks:
- basyx-java-server-sdk
Expand All @@ -90,6 +91,7 @@ services:
container_name: sm-registry-log-mem
environment:
SERVER_SERVLET_CONTEXT_PATH: /
SERVER_PORT: 8080
ports:
- "8060:8080"
restart: always
Expand All @@ -103,6 +105,7 @@ services:
- "8051:8080"
environment:
SERVER_SERVLET_CONTEXT_PATH: /
SERVER_PORT: 8080
BASYX_CORS_ALLOWED_ORIGINS: '*'
BASYX_CORS_ALLOWED_METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
BASYX_FEATURE_AUTHORIZATION_ENABLED: true
Expand All @@ -121,6 +124,7 @@ services:
container_name: secured-sm-registry-log-mem
environment:
SERVER_SERVLET_CONTEXT_PATH: /
SERVER_PORT: 8080
BASYX_CORS_ALLOWED_ORIGINS: '*'
BASYX_CORS_ALLOWED_METHODS: GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD
BASYX_FEATURE_AUTHORIZATION_ENABLED: true
Expand Down
8 changes: 8 additions & 0 deletions examples/BaSyxMinimal/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ services:

aas-env:
image: eclipsebasyx/aas-environment:2.0.0-SNAPSHOT
environment:
- SERVER_PORT=8081
volumes:
- ./aas-env.properties:/application/application.properties
- ./aas:/application/aas
Expand All @@ -53,6 +55,8 @@ services:
image: eclipsebasyx/aas-registry-log-mongodb:2.0.0-SNAPSHOT
ports:
- 8082:8080
environment:
- SERVER_PORT=8080
volumes:
- ./aas-registry.yml:/workspace/config/application.yml
depends_on:
Expand All @@ -63,6 +67,8 @@ services:
image: eclipsebasyx/submodel-registry-log-mongodb:2.0.0-SNAPSHOT
ports:
- 8083:8080
environment:
- SERVER_PORT=8080
volumes:
- ./sm-registry.yml:/workspace/config/application.yml
depends_on:
Expand All @@ -73,6 +79,8 @@ services:
image: eclipsebasyx/aas-discovery:2.0.0-SNAPSHOT
ports:
- 8084:8081
environment:
- SERVER_PORT=8081
volumes:
- ./aas-discovery.properties:/application/application.properties
depends_on:
Expand Down
4 changes: 4 additions & 0 deletions examples/BaSyxNGINX/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ services:
aas-env:
image: eclipsebasyx/aas-environment:2.0.0-SNAPSHOT
container_name: aas-env
environment:
SERVER_PORT: 8081
volumes:
- ./basyx/aas-env.properties:/application/application.properties
- ./aas:/application/aas
Expand Down Expand Up @@ -70,6 +72,8 @@ services:
container_name: aas-discovery
ports:
- 8084:8081
environment:
SERVER_PORT: 8081
volumes:
- ./basyx/aas-discovery.properties:/application/application.properties
restart: always
Expand Down
6 changes: 6 additions & 0 deletions examples/BaSyxOperationDelegation/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ services:
aas-env:
image: eclipsebasyx/aas-environment:2.0.0-milestone-02
container_name: aas-env
environment:
- SERVER_PORT=8081
volumes:
- ./aas:/application/aas
- ./basyx/aas-env.properties:/application/application.properties
Expand All @@ -19,6 +21,8 @@ services:
container_name: aas-registry
ports:
- '8082:8080'
environment:
- SERVER_PORT=8080
volumes:
- ./basyx/aas-registry.yml:/workspace/config/application.yml
restart: always
Expand All @@ -27,6 +31,8 @@ services:
container_name: sm-registry
ports:
- '8083:8080'
environment:
- SERVER_PORT=8080
volumes:
- ./basyx/sm-registry.yml:/workspace/config/application.yml
restart: always
Expand Down

0 comments on commit 152e551

Please sign in to comment.