diff --git a/api/compose.yaml b/api/compose.yaml index 33700d8c..187f7de6 100644 --- a/api/compose.yaml +++ b/api/compose.yaml @@ -1,16 +1,25 @@ services: boardmate-api: - build: . + build: + context: . + dockerfile: Dockerfile container_name: boardmate-api ports: - "8000:8080" + environment: + SPRING_DATA_MONGODB_URI: "mongodb://board-mate-user:apx820kcng@mongodb:27017/board-mate-db" + JAVA_TOOL_OPTIONS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005" depends_on: - mongodb - elasticsearch - mosquitto + volumes: + - ./.gradle:/home/gradle/.gradle + - ./build:/app/.gradle elasticsearch: image: 'docker.elastic.co/elasticsearch/elasticsearch:7.17.10' + container_name: elastic-search environment: - 'ELASTIC_PASSWORD=secret' - 'discovery.type=single-node' @@ -21,6 +30,7 @@ services: grafana-lgtm: image: 'grafana/otel-lgtm:latest' + container_name: grafana ports: - '8200:3000' - '8201:4317' @@ -36,6 +46,7 @@ services: mongodb: image: mongo:latest + container_name: mongo-db environment: - MONGO_INITDB_DATABASE=board-mate-db - MONGO_INITDB_ROOT_PASSWORD=secret diff --git a/api/mosquitto/data/empty b/api/mosquitto/data/empty new file mode 100644 index 00000000..e69de29b diff --git a/api/mosquitto/log/empty b/api/mosquitto/log/empty new file mode 100644 index 00000000..e69de29b