skip to Main Content

Docker – How do I change the default database on postgres

It seems to me that Postgres is ignoring my envar and the sql script Here's my docker-compose version: '3.1' services: db: image: postgres restart: always environment: POSTGRES_PASSWORD: mysecretpassword PGDATA: /var/lib/postgresql/data/pgdata POSTGRES_DB: ecommerce volumes: - /custom/mount:/var/lib/postgresql/data - ./sql_script.sql:/docker-entrypoint-initdb.d/sql_script.sql ports: - 5432:5432…

VIEW QUESTION
Back To Top
Search