# How to configure GRAVITY and Docker containers GRAVITY builds are available on [Docker Hub](https://hub.docker.com/?namespace=gravityglobaldev "https://hub.docker.com/?namespace=gravityglobaldev") 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](https://hub.docker.com/repository/docker/gravityglobaldev/gravity "https://hub.docker.com/repository/docker/gravityglobaldev/gravity") with GRAVITY application server & MariaDB on combined in one container - [MariaDB-Version](https://hub.docker.com/repository/docker/gravityglobaldev/gravity-server "https://hub.docker.com/repository/docker/gravityglobaldev/gravity-server") of the GRAVITY application server - [Oracle DB-Version](https://hub.docker.com/repository/docker/gravityglobaldev/gravity-server-oracle "https://hub.docker.com/repository/docker/gravityglobaldev/gravity-server-oracle") of the GRAVITY application server - [PostgreSQL DB-Version](https://hub.docker.com/repository/docker/gravityglobaldev/gravity-server-postgres "https://hub.docker.com/repository/docker/gravityglobaldev/gravity-server-postgres") of the GRAVITY application server > [!Info] > There is an empty [MariaDB in a Docker Container](https://hub.docker.com/repository/docker/gravityglobaldev/gravity-db "https://hub.docker.com/repository/docker/gravityglobaldev/gravity-db") on the Docker Hub. That container can be used with the MariaDB-Version of GRAVITY. > [!Info] > To import private certificates; mount the “/ca-certificates” folder with *.pem file(s) to the deployed container. ## Usage with Docker Compose 1. Install [Docker Engine](https://docs.docker.com/engine/install/ "https://docs.docker.com/engine/install/") 2. Install [Docker Compose](https://docs.docker.com/compose/install/ "https://docs.docker.com/compose/install/") 3. Login to Docker Hub, at the password prompt, enter the personal Access Token provided. `docker login -u gravityglobal` 4. Create docker-compose.yml 5. Start the container: docker-compose up -d General 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 (PostgreSQL version) ``` version: '3.4' services: gravity_server0: image: "gravityglobaldev/gravity-server-postgres:1.30.0" container_name: gravity_server0 environment: - SPRING_DATASOURCE_URL=jdbc:postgresql://gravity_db0:5432/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) ``` version: '3.4' services: gravity-mysql0: image: "gravityglobaldev/gravity-db" container_name: gravity_mysql0 volumes: - gravity-mysql0:/var/lib/mysql restart: 'always' gravity_server0: image: "gravityglobaldev/gravity-server:1.18.0" container_name: gravity_server0 ports: - "8080:8080" environment: - SPRING_DATASOURCE_URL=jdbc:mariadb://gravity-mysql0:3306/gravity?trustServerCertificate=true&useSSL=true&requireSSL=true&enabledSslProtocolSuites=TLSv1.1,TLSv1.2 - SPRING_DATASOURCE_USERNAME=gravity - SPRING_DATASOURCE_PASSWORD=gravity links: - gravity-mysql0 restart: 'always' volumes: gravity-mysql0` ``` Also check [[GRAVITY & Oracle]] for guidance on Oracle DB initial setup. ## Guide to GRAVITY Server Configuration on Azure To understand the configuration details of the GRAVITY server deployed on Microsoft Azure, please refer to the comprehensive guide available in the linked PDF document. [Click here](gravity.azure.run.pdf) to access the PDF and gain insight into the server setup and customization options.