Define Custom Docker Network with Environment Variables
Validation Requirements
The following requirements must be met for the custom docker network in a production environment.
Network Name (DOCKER_ADDRESS_POOL_BASE)
- Must be a valid CIDR block, like
10.0.0.0/8.
Address Pool Size (DOCKER_ADDRESS_POOL_SIZE)
- Must be a valid number, like
10.
Force Override (DOCKER_POOL_FORCE_OVERRIDE)
- This only needed if you already have a docker address pool on the host and you want to override it.
Automated Installation Method
-
Prepare Your Credentials
Create your root user credentials according to the validation requirements above.
-
Run Installation Command
Execute the automated installation script with your prepared credentials:
env DOCKER_ADDRESS_POOL_BASE=10.0.0.0/8 DOCKER_ADDRESS_POOL_SIZE=10 bash -c 'curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash'View the Scripts Source Code
The installation script must be run as root. If you're not logged in as root, the script will use sudo to elevate privileges.
sudo -E env DOCKER_ADDRESS_POOL_BASE=10.0.0.0/8 DOCKER_ADDRESS_POOL_SIZE=10 bash -c 'curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash'- Complete Setup After configuring the root user credentials, continue with the installation steps to complete your Coolify setup.
Manual Installation Method
-
Prepare Your Credentials
Create your root user credentials according to the validation requirements above.
-
Configure Environment Variables
Edit the environment variables file:
nano /data/coolify/source/.envAdd the following variables with your prepared credentials:
DOCKER_ADDRESS_POOL_BASE=10.0.0.0/8 DOCKER_ADDRESS_POOL_SIZE=10 DOCKER_POOL_FORCE_OVERRIDE=false -
Complete Setup After configuring the root user credentials, continue with the installation steps to complete your Coolify setup.
Create Root User with Environment Variables
Create Coolify root user during installation with environment variables including email validation, username requirements, and strong password policies.
Custom Docker Registry
Switch between Docker Hub and GitHub Container Registry (ghcr.io) for pulling Coolify images during installation or runtime
