version: '3.8' services: backend: build: context: . dockerfile: Dockerfile image: autopilot/backend:latest container_name: autopilot-backend ports: - "9090:9090" restart: unless-stopped environment: - SPRING_PROFILES_ACTIVE=prod # If you have a local postgres DB running, uncomment and configure: # - SPRING_DATASOURCE_URL=jdbc:postgresql://host.docker.internal:5432/autopilot # - SPRING_DATASOURCE_USERNAME=postgres # - SPRING_DATASOURCE_PASSWORD=postgres