skip to Main Content

Postgres container connection refused – Debian

Docker-compose with 2 containers. 1st is a Postgres database and 2nd is a Java Spring Boot application. For running, I use further docker-compose config file: docker-compose.yml version: "3.7" services: db-service: image: postgres restart: always volumes: - /home/ec2-user/dbdata:/var/lib/postgresql/data environment: POSTGRES_USER: postgres…

VIEW QUESTION

docker-compose postgres restart after running scripts in docker-entrypoint-initdb.d – Debian

I have a simple Docker Compose file to initialize a Postgres DB Instance: version: '3.8' services: my-database: container_name: my-database image: library/postgres:13.1 volumes: - ./db/init-my-database.sql:/docker-entrypoint-initdb.d/init-db-01.sql environment: - POSTGRES_DB=my-database - POSTGRES_USER=admin - POSTGRES_PASSWORD=password ports: - 10040:5432 restart: always networks: - app-network And…

VIEW QUESTION
Back To Top
Search