My Personal API for things I want to API.
git clone git@github.com:syntaqx/api && cd "$(basename "$_")"
docker compose up -d --build
Note
You may prefer to develop using go
directly. You can reference the Dockerfile
for necessary steps to run the code on your system, but given the steps will be
different for each host operating system and their versions, this route will
remain undocumented.
In order to access the container ports over localhost
you'll need to override the default
compose.yml
port values and specify your preferred host port. To use the default
values, or quickly populate the file, simply:
cp compose.override.example.yml compose.override.yml
Note
Any changes made to the compose.override.yml
will be ignored by git, to feel free to
use this to make any environment-specific changes or overrides without affecting others
local settings.
Then (re)start your containers with the new port bindings:
docker compose up -d