🔢Compose
WebDB also works very well from compose. Below, here is a working example of a compose file including WebDB App to start
services:
webdb:
image: webdb/app
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- "$HOME/.ssh:/root/.ssh:ro"
- "$HOME/.webdb:/usr/src/app/static/version"
ports:
- "127.0.0.1:22071:22071"
maria:
image: mariadb
ports:
- 3307:3306
environment:
MARIADB_ROOT_PASSWORD: notSecureChangeMe
postgre:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: notSecureChangeMe
mongo:
image: mongo
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: notSecureChangeMe
cockroach:
image: cockroachdb/cockroach
command: start-single-node --insecure
ports:
- 26257:26257
environment:
COCKROACH_USER: 'root'
COCKROACH_PASSWORD: 'notSecureChangeMe'
Setup
From your project folder, create a 'docker-compose.yml' file
Copy the content and paste it into
Remove unnecessary databases
From a terminal, navigate to your project
Run:
docker-compose up -d
🚀 App is now available on http://localhost:22071
Update
Here is the command to update and relaunch WebDB container
docker pull webdb/app && \
docker-compose down webdb && \
docker-compose up -d webdb
If you want more informations about the launch parameters -> https://docs.webdb.app/backend/docker-container
If you planned to share WebDB, please read https://docs.webdb.app/installation/security
Last updated
Was this helpful?