I’m trying to run the Wix External Database Adapter on my own VPS without using any cloud provider (no GCP, AWS, or Azure). I’ve set up both the adapter and a MySQL 8.0 database as Docker containers on the same host using this docker-compose.yml:
version: "3.7"
services:
adapter:
image: gcr.io/wix-velo-api/velo-external-db:mysql
ports:
- "5000:5000"
environment:
PORT: "5000"
TYPE: "mysql"
CLOUD_VENDOR: "gcp" # for example
HOST: "mysql"
USER: "myuser"
PASSWORD: "test"
DB: "test"
SECRET_KEY: "test"
mysql:
image: mysql:8
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "rootpass"
MYSQL_DATABASE: "test"
MYSQL_USER: "myuser"
MYSQL_PASSWORD: "test"
volumes:
- mysql_data:/var/lib/mysql
volumes:
mysql_data:
My question is:
Is there a way to deploy the adapter without requiring any cloud vendor-specific configuration like
CLOUD_SQL_CONNECTION_NAME?
I’m not using any managed cloud database — just a local MySQL container. When I set CLOUD_VENDOR: gcp, the container expects GCP-specific values that don’t apply in this case.
If possible:
- What should I set for
CLOUD_VENDORwhen self-hosting? - Can I omit this variable or use a neutral/default value (e.g.,
"none"or"local")?
Any advice or documentation for this type of setup would be greatly appreciated.