Update compose.yaml
This commit is contained in:
@@ -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
|
||||
|
||||
0
api/mosquitto/data/empty
Normal file
0
api/mosquitto/data/empty
Normal file
0
api/mosquitto/log/empty
Normal file
0
api/mosquitto/log/empty
Normal file
Reference in New Issue
Block a user