version: '3' services: app: restart: always build: context: . dockerfile: Dockerfile ports: - 8080:8080 environment: MQTT: "mqtt://192.168.24.215" DB: "mqtt://192.168.24.215" PGHOST: "database" PGPASSWORD: "6561284a-b277-4668-af57-3226c8ff454c" PGUSER: "postgres" depends_on: - database database: image: postgres:alpine restart: always environment: POSTGRES_PASSWORD: 6561284a-b277-4668-af57-3226c8ff454c volumes: - postgres:/var/lib/postgresql/data volumes: postgres: