shared-postgrest directory "/var/lib/postgresql/da...
# 🌱|help-and-getting-started
c
Hi Garden team, I have a configured task to create some databases, but I'm getting the issue: directory "/var/lib/postgresql/data" exists but is not empty. I've removed my environment and created it again, but for some reason the directory isn't empty. This is my configuration
Copy code
kind: Module
name: shared-postgres
type: container
services:
  - name: shared-postgres
    env:
      POSTGRES_HOST_AUTH_METHOD: trust
    volumes:
      - name: data
        containerPath: /var/lib/postgresql/data
    healthCheck:
      tcpPort: postgres
    ports:
      - name: postgres
        containerPort: 5432
Any ideas why is not re-creating the databases after delete the env ?
3 Views