skip to Main Content

docker-compose postgres dial error (dial tcp 172.23.0.3:5432: connect: connection refused)

I try to connect from backend container to postgres container. Here is my docker-compose file: version: "3.9" services: imgress-producer: build: context: ./producer dockerfile: Dockerfile.producer target: prod container_name: imgress-producer ports: - 8080:8080 environment: - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=${POSTGRES_DB} - DATABASE_HOST=${DATABASE_HOST}…

VIEW QUESTION

How do I adjust my docker set up so that localstack file storage persists between system restarts?

I have this docker-compose.yml file with a localstack image that i use to simulate S3 storage version: '3.8' services: localstack: image: localstack/localstack:latest environment: - DEFAULT_REGION=ap-northeast-1 - EDGE_PORT=4566 - SERVICES=s3,logs - AWS_DEFAULT_REGION=us-west-1 - AWS_ACCESS_KEY_ID=xxx - AWS_SECRET_ACCESS_KEY=xxx - DOCKER_HOST=unix:///var/run/docker.sock - DATA_DIR=/tmp/localstack/data ports:…

VIEW QUESTION
Back To Top
Search