services: api: ports: - 8080:8080 build: context: . restart: always env_file: - .env volumes: - ./app/data:/app/data database: #ports: #- 55432:5432 image: postgres restart: always environment: POSTGRES_PASSWORD: api POSTGRES_USER: api POSTGRES_DB: api volumes: - ./postgres_database:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready"] interval: 10s timeout: 5s retries: 5