Quickstart¶
This page shows how to start a Dinatos instance with Docker Compose. Compose runs two containers: Postgres and the app container.
You need Docker with the Compose plugin, and Git.
1. Start the instance¶
Get the code and make your
.envfile:git clone https://github.com/bergercookie/dinatos.git cd dinatos cp .env.example .env
Edit
.env. See Set.envfor the variables.Start the containers:
docker compose up -d
The first start builds the image from source. This takes a few minutes. Database migrations run automatically on every start.
The command just docker up does the same as docker compose up -d.
2. Open the web app¶
Open
http://127.0.0.1:8000in a browser. This is the web app.To check the health of the instance, run
curl http://127.0.0.1:8000/health.
The app container listens on localhost only. To make it reachable from other machines, see Security and networking.
3. Set .env¶
Variable |
Required |
Meaning |
|---|---|---|
|
Yes |
Password of the database. The containers do not start without it. |
|
No |
Both default to |
|
No |
Owner of the Postgres data directory. Both default to |
|
No |
Folder on the host for the data. The default is |
|
No |
Set both to make this administrator account on the first start. Dinatos never changes the password of an existing account. |
If you do not set the administrator variables, the first account that registers becomes the administrator. Administrators add users in Settings -> Administration.
All other settings are in the Configuration reference.
Day-to-day commands¶
Task |
Command |
|---|---|
Follow the logs |
|
Stop the containers (Dinatos keeps the data) |
|
Upgrade |
API documentation¶
The running server shows its own API documentation:
URL |
Content |
|---|---|
|
Swagger UI with “Try it out”. It needs a login token. |
|
Read-only reference |
|
Raw schema |
Next¶
To connect a client, see Clients.