Docker Compose
-
Get the sources and copy the environment file.
Terminal window git clone https://github.com/Metalhearf/badlen.gitcd badlencp .env.example .env -
Fill in the three secrets, as Configuration spells out. The stack will not come up before they are set.
Terminal window $EDITOR .env -
Build the image and start both containers.
Terminal window docker compose up -d --buildThe first build takes minutes. The application then applies its pending migrations itself and starts serving; nothing has to be run against the database by hand.
-
Open
http://localhost:8080, or whateverWEB_PORTyou chose. The first screen is the login page, and First start is what happens there.
Checking it came up
Section titled “Checking it came up”docker compose psdocker compose logs app | tail -30Stopping and restarting
Section titled “Stopping and restarting”docker compose stop # containers stopped, nothing removeddocker compose down # containers and network removed; the volume is untoucheddocker compose up -d # back up, without rebuilding the imagedocker compose down -v # the volume too: everything the database holds, goneNext: First start, where the first account is created and takes ownership of the instance.