version: '3' services: opop-service: build: context: /opop-service dockerfile: Dockerfile args: JAR_FILE: build/libs/*.jar ports: - "8080:8080" networks: - my-network environment: server.forward-headers-strategy: framework document-service: build: context: /document-service dockerfile: Dockerfile args: JAR_FILE: build/libs/*.jar ports: - "8081:8081" networks: - my-network environment: server.forward-headers-strategy: framework nginx: image: nginx ports: - "80:80" networks: - my-network volumes: - ./nginx-conf:/etc/nginx/conf.d depends_on: - opop-service - document-service networks: my-network: driver: bridge