gravity.docker.run
GRAVITY builds are available on Docker Hub as private repositories. Please contact us to get your Access Token.
Helm Charts are available on request.
There are three version available:
Test/POC-Version with GRAVITY application server & MariaDB on combined in one container
MariaDB-Version of the GRAVITY application server
Oracle DB-Version of the GRAVITY application server
There is an empty MariaDB in a Docker Container on the Docker Hub. That container can be used with the MariaDB-Version of GRAVITY.
To import private certificates; mount the “/ca-certificates” folder with *.pem file(s) to the deployed container.
Usage with Docker Compose
Install Docker Engine
Install Docker Compose
Login to Docker Hub, at the password prompt, enter the personal Access Token provided.
docker login -u gravityglobal
Create docker-compose.yml
Start the container: docker-compose up -d
Template of docker-compose.yml
version: '3.4'
services:
gravity_server0:
image: "%SERVER_IMAGE%"
container_name: gravity_server0
environment:
- SPRING_DATASOURCE_URL=jdbc:@DB_PROVIDER@:@%DB_SERVER_ADDRES%:%DB_SERVER_PORT%:%DB_NAME%
- SPRING_DATASOURCE_USERNAME=%DB_USERNAME%
- SPRING_DATASOURCE_PASSWORD=%DB_PASSWORD%
ports:
- "8080:8080"
restart: 'always'
Example of docker-compose.yml (oracle version)
version: '3.4'
services:
gravity_server0:
image: "gravityglobaldev/gravity-server-oracle:1.18.0"
container_name: gravity_server0
environment:
- SPRING_DATASOURCE_URL=jdbc:oracle:thin:@gravity_oracle_db0:1521:gravity_db
- SPRING_DATASOURCE_USERNAME=gravity_user
- SPRING_DATASOURCE_PASSWORD=gravity_user_password
ports:
- "8080:8080"
restart: 'always'
Example of docker-compose.yml (MariaDB + MariaDB version)