Integrating Oxla Docker Container with Amazon S3
Overview
This guide provides instructions on deploying an Oxla Docker container using an AWS S3 bucket as object storage. The setup involves configuring Docker, creating a Docker cCompose file and running the Oxla container with S3 integration.
Prerequisites
Before proceeding, make sure you have the following:
- Docker: install Docker on your machine
- PostgreSQL Client: install PostgreSQL client to connect to the Oxla database
- AWS S3 Bucket: create an AWS S3 bucket to store you data
- AWS Credentials: obtain your AWS access key ID and secret access key
Docker Compose File
Open your terminal and create a new Docker Compose file named docker-compose.s3-credentials.yml
:
Input the following configuration into the file and replace the placeholder values below with the actual credentials and region settings from your AWS instance to enable proper access to S3 resources:
oxla_home
variable references a directory in your S3 bucket that is either empty or exclusively contains files conforming to the Oxla format.Save and exit the file by typing :wq
and pressing Enter
.
Running Docker Container
After saving the YAML file, run the following command to create and start the Oxla docker container:
This command will start the Oxla service and connects it to your specified S3 bucket using the provided credentials. You can now verify that Oxla is running correctly by using the PostgreSQL client:
Upon successful execution, you should see a similar output:
Related resources
For more information on Oxla’s Environment Variables check out the Configuration file section.