Overview
This guide provides step-by-step instructions for deploying an Oxla Docker container and integrating it with Google Cloud Storage as the object storage. You will configure Docker, create a Docker Compose file and run the Oxla container so it can read from and write to Google Cloud Storage.Prerequisites
Before proceeding, make sure you have the following:- Docker: install Docker on your Linux machine
- PostgreSQL Client: install PostgreSQL client to connect to the Oxla database
- Google Bucket: create an Google Cloud Storage bucket to store you data
- Google Credentials: generate a service account and download the credentials file (which includes the email, private key ID, and private key). For instructions, see Authenticate to Cloud Storage in the Google Cloud documentation
Create the Docker Compose File
Open your terminal and create a new Docker Compose file nameddocker-compose.gcs-credentials.yml
:
:wq
and pressing Enter
.
The
OXLA_HOME
path must reference a directory in your Google Cloud Storage bucket that is either empty or exclusively contains files conforming to the Oxla format.Be sure to mount your Google Cloud Storage credentials file into the container at
/gcs/credentials.json
by updating the volumes
section.
The path in the GOOGLE_APPLICATION_CREDENTIALS
environment variable must match the container path of the mounted file.Run the Docker Container
After saving the YAML file, run the following command to create and start the Oxla docker container:The default username and password for the Oxla superuser are both “oxla”.