version: "3"
services:
sqlite_server:
image: aosingh/sqlite_rx
command: sqlite-server --log-level DEBUG
ports:
- 5000:5000
5000 so, do enable port forwarding on the host machinedocker volume is used to persist the database file on the host's file system
version: "3"
services:
sqlite_server:
image: aosingh/sqlite_rx
command: sqlite-server --log-level DEBUG --database /data/database.db --backup-database /data/backup.db
ports:
- 5000:5000
volumes:
- data:/data
volumes:
data: {}
data is mounted to /data location in the containersqlite-server CLI accepts --database option which is the database path in the container.
Form is /data/<dbname>.db
version: "3"
services:
sqlite_server:
image: aosingh/sqlite_rx
command: sqlite-server --curvezmq --log-level DEBUG --database /data/database.db --key-id id_server_Abhisheks-MacBook-Pro.local_curve
ports:
- 5000:5000
volumes:
- data:/data
- /Users/as/.curve:/root/.curve
volumes:
data: {}
sqlite-server CLI accepts --curvezmq boolean flag to enable encryptionsqlite-server CLI accepts --key-id which is the server key id available at /root/.curve location/Users/as/.curve (on host machine) is mapped to /root/.curve in the docker container.ZeroMQ Authentication protocol
Setting --zap = True will restrict connections to clients whose public keys are in the /root/.curve/authorized_clients/ directory. Set this to False to allow any client with the server's
public key to connect, without requiring the server to possess each client's public key.
version: "3"
services:
sqlite_server:
image: aosingh/sqlite_rx
command: sqlite-server --zap --curvezmq --log-level DEBUG --database /data/database.db --key-id id_server_Abhisheks-MacBook-Pro.local_curve
ports:
- 5000:5000
volumes:
- data:/data
- /Users/as/.curve:/root/.curve
volumes:
data: {}
Content type
Image
Digest
sha256:6ee7acc5f…
Size
58.6 MB
Last updated
7 months ago
docker pull aosingh/sqlite_rx