This setup contains two separate services -- one for running the DB platform itself, and one for the shell used to interface with that platform.
Running docker-compose up
will activate both the DB and Fauna shell services, removing any need to deal with dependencies on your own machine.
Enter the container to use the shell with the following:
docker-compose exec --user root shell /bin/bash
To run only the DB, use docker-compose up shell
. In order to use the Fauna shell with that DB, you'll need to set it up on your machine:
Outside your container, you'll need to separately install the fauna-shell
for interacting with FaunaDB via command line. Dig into the package more here.
npm install -g fauna-shell
Create a ~/.fauna-shell configuration file.
touch ~/.fauna-shell
Place the following in that file. These values will set up the shell to interface with your running FaunaDB container.
default=localhost
[localhost]
domain=127.0.0.1
port=8443
scheme=http
secret=secret
Run the following:
fauna create-database mydatabase
Start up a shell with your newly created database with the following:
fauna shell mydatabase
For a pretty web interface through which to managed your local databases, see FaunaDB's Developer Dashboard.