diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 9be91bcb9..aea645d63 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -29,7 +29,7 @@ services: postgres: container_name: coolify-db volumes: - - coolify-db:/var/lib/postgresql/data + - /data/coolify/coolify-db:/var/lib/postgresql/data environment: POSTGRES_USER: "${DB_USERNAME}" POSTGRES_PASSWORD: "${DB_PASSWORD}" @@ -45,6 +45,3 @@ services: interval: 2s retries: 5 timeout: 2s -volumes: - coolify-db: - name: coolify-db diff --git a/scripts/install.sh b/scripts/install.sh index 47021b3dc..2168f23ff 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -22,6 +22,7 @@ mkdir -p /data/coolify/deployments mkdir -p /data/coolify/ssh-keys mkdir -p /data/coolify/proxy mkdir -p /data/coolify/source +mkdir -p /data/coolify/coolify-db chown -R 9999:root /data chmod -R 700 /data