generated from ow2-proactive/yamt
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da98db6
commit d58b10b
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
services: | ||
database: | ||
image: mariadb #optionaly set specific version e.g. mariadb:10.7 | ||
ports: | ||
- "3307:3306" | ||
networks: | ||
- db-tier | ||
environment: | ||
MYSQL_ROOT_PASSWORD: PASSWORD | ||
MYSQL_DATABASE: proactive | ||
container_name: myComposeMariaDB | ||
healthcheck: | ||
test: [ "CMD", "mariadb-admin" , "ping", "-h", "localhost", "--password=PASSWORD" ] | ||
interval: 5s | ||
timeout: 5s | ||
retries: 5 | ||
sal: | ||
#Set up image to be used for SAL from https://hub.docker.com/r/activeeon/sal/tags | ||
image: activeeon/sal:test | ||
build: | ||
context: .. | ||
#Set up Dockerfile to be used: | ||
#Dockerfile is used for Jenkins image creation | ||
#Dockerfile.win to be used for local build on Windows | ||
dockerfile: ./docker/Dockerfile | ||
depends_on: | ||
database: | ||
condition: service_healthy | ||
ports: | ||
#Port for sal service | ||
- "8088:8080" | ||
#Port for sal-pda debugging service | ||
- "9001:9001" | ||
links: | ||
- "database:myComposeMariaDB" | ||
networks: | ||
- db-tier | ||
volumes: | ||
- ./scripts:/usr/local/tomcat/scripts | ||
environment: | ||
PROPERTIES_FILENAME: sal | ||
#Set up connection to ProActive server (PWS) | ||
PWS_URL: <CHANGE_ME> | ||
PWS_USERNAME: <CHANGE_ME> | ||
PWS_PASSWORD: <CHANGE_ME> | ||
DB_USERNAME: root | ||
DB_PASSWORD: PASSWORD | ||
DB_DRIVER_CLASSNAME: org.mariadb.jdbc.Driver | ||
DB_PORT: 3306 | ||
DB_HOSTNAME: myComposeMariaDB | ||
DB_URL: jdbc:mariadb://myComposeMariaDB:3306/proactive | ||
DB_PLATFORM: org.hibernate.dialect.MariaDB53Dialect | ||
JPDA_ADDRESS: 9001 | ||
JPDA_TRANSPORT: dt_socket | ||
container_name: myComposeSAL | ||
|
||
networks: | ||
# The presence of these objects is sufficient to define them | ||
db-tier: {} |