services: postgres: image: postgres:17 container_name: cleo-postgres restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env} POSTGRES_DB: cleo_auth ports: - "5432:5432" volumes: - cleo-pgdata:/var/lib/postgresql/data volumes: cleo-pgdata: # Fixed name so the volume created earlier by `docker run -v cleo-pgdata:...` is reused. name: cleo-pgdata