Install via Docker Compose
If you want to run NocoBase directly on the server, docker compose is still the most direct way. One serving of docker-compose.yml is sufficient for most scenarios.
However, in a production environment, it is recommended to fix the specific version number and not use latest directly for a long time. This will make the upgrade more controllable.
Prerequisites
- Docker and Docker Compose installed
- Make sure the Docker service is started
- A port to be opened to the outside world has been prepared, such as
13000
Step 1: Create the project directory
Step 2: Create docker-compose.yml
The following example uses PostgreSQL, which is also the most worry-free combination by default:
in:
APP_KEYRemember to change it to your own random string13000:80represents mapping the host's13000port to the container's80port- If you already have a database service, you can delete the
postgressection and changeDB_HOSTto the existing database address
If you use MySQL or MariaDB, remember to change DB_DIALECT to the corresponding type and add:
Step 3: Start the application
Check the log:
Step 4: Access the application
After the application has started, open:
If it is the first time to start, just follow the page prompts to initialize the administrator account.
Common commands
Start or update containers:
Stop application:
Check the log:
Where to look next
- If you want to adjust the configuration of keys, ports, databases, etc., continue to see Application Environment Variables
- If you are ready to officially go online, continue to read Nginx or Caddy
- If you want to back up data later, continue to see Backup and Restore

