version: '3' services: postgres: image: postgres:15-alpine environment: POSTGRES_USER: minireader POSTGRES_PASSWORD: minireader POSTGRES_DB: minireader ports: - "127.0.0.1:5432:5432" volumes: - postgres:/var/lib/postgresql/data tmpfs: - /tmp healthcheck: test: pg_isready -U minireader interval: 3s timeout: 3s retries: 3 server: image: borodyadka/minireader:dev env_file: - .env ports: - "127.0.0.1:8080:8080" depends_on: postgres: condition: service_healthy volumes: postgres: {}