Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions apps/docs/content/docs/core/manual-installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,17 @@ install_dokploy() {

chmod 777 /etc/dokploy

postgres_user="${POSTGRES_USER:-dokploy}"
postgres_db="${POSTGRES_DB:-dokploy}"
postgres_password="${POSTGRES_PASSWORD:-$(openssl rand --hex 32)}"

docker service create \
--name dokploy-postgres \
--constraint 'node.role==manager' \
--network dokploy-network \
--env POSTGRES_USER=dokploy \
--env POSTGRES_DB=dokploy \
--env POSTGRES_PASSWORD=amukds4wi9001583845717ad2 \
--env POSTGRES_USER=${postgres_user} \
--env POSTGRES_DB=${postgres_db} \
--env POSTGRES_PASSWORD=${postgres_password} \
--mount type=volume,source=dokploy-postgres,target=/var/lib/postgresql/data \
postgres:16

Expand All @@ -159,6 +163,7 @@ install_dokploy() {
--name dokploy \
--replicas 1 \
--network dokploy-network \
--env DATABASE_URL="postgres://${postgres_user}:${postgres_password}@dokploy-postgres:5432/${postgres_db}" \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--mount type=bind,source=/etc/dokploy,target=/etc/dokploy \
--mount type=volume,source=dokploy,target=/root/.docker \
Expand Down
15 changes: 12 additions & 3 deletions apps/website/public/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,21 @@ install_dokploy() {

chmod 777 /etc/dokploy

# Allow to specify a custom username, password and database name for PostgreSQL
# Example: export POSTGRES_PASSWORD=replace-me-with-a-secure-password
# If no username and/or database name is specified, "dokploy" is used.
# If no password is specified, a random password will be generated.
postgres_user="${POSTGRES_USER:-dokploy}"
postgres_db="${POSTGRES_DB:-dokploy}"
postgres_password="${POSTGRES_PASSWORD:-$(openssl rand --hex 32)}"

docker service create \
--name dokploy-postgres \
--constraint 'node.role==manager' \
--network dokploy-network \
--env POSTGRES_USER=dokploy \
--env POSTGRES_DB=dokploy \
--env POSTGRES_PASSWORD=amukds4wi9001583845717ad2 \
--env POSTGRES_USER=${postgres_user} \
--env POSTGRES_DB=${postgres_db} \
--env POSTGRES_PASSWORD=${postgres_password} \
--mount type=volume,source=dokploy-postgres,target=/var/lib/postgresql/data \
$endpoint_mode \
postgres:16
Expand All @@ -229,6 +237,7 @@ install_dokploy() {
--name dokploy \
--replicas 1 \
--network dokploy-network \
--env DATABASE_URL="postgres://${postgres_user}:${postgres_password}@dokploy-postgres:5432/${postgres_db}" \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--mount type=bind,source=/etc/dokploy,target=/etc/dokploy \
--mount type=volume,source=dokploy,target=/root/.docker \
Expand Down