Spanish Total.js
English
Documentation For AI agents
Contents

Run with Docker

Build a SuperAdmin image from the source code and run it in a container.

.md GitHub
On this page

The source code of SuperAdmin has a file dockerfile.alpine that builds an image with Alpine Linux, Node.js 16, Nginx and SuperAdmin. In the container, Nginx serves SuperAdmin on port 80, as on a server.

A container is a good place to try SuperAdmin. Everything you add, apps, users and settings, lives inside the container: the image defines no volume, so removing the container removes your data.

Build and run

1. Get the source code:

git clone https://github.com/totaljs/superadmin.git
cd superadmin

2. Build the image:

docker build -f dockerfile.alpine -t superadmin .

3. Start a container:

docker run -d --name superadmin -p 127.0.0.1:8080:80 superadmin

4. Open http://localhost:8080/ and sign in for the first time.

Use dockerfile.alpine. The other file, dockerfile, does not build.

What is different in the container

  • The image configures SuperAdmin for the domain localhost, so open it as localhost, not as 127.0.0.1.
  • The Storage values in the system panel stay empty.
  • To see the output of SuperAdmin, run docker logs superadmin.
Made in Europe