-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
33 lines (32 loc) · 1.19 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: "3.8"
services:
mongodb:
image: mongo
restart: unless-stopped
env_file: ./.env
ports:
- ${MONGO_LOCAL_PORT}:${MONGO_DOCKER_PORT}
environment:
MONGO_INITDB_ROOT_USERNAME: $MONGO_INITDB_ROOT_USERNAME
MONGO_INITDB_ROOT_PASSWORD: $MONGO_INITDB_ROOT_PASSWORD
MONGO_INITDB_DATABASE: $MONGO_INITDB_DATABASE
app:
depends_on:
- mongodb
restart: on-failure
image: amazon-agency
build: .
env_file: ./.env
ports:
- ${SPRING_LOCAL_PORT}:${SPRING_DOCKER_PORT}
- ${DEBUG_PORT}:${DEBUG_PORT}
environment:
SPRING_APPLICATION_JSON: '{
"spring.data.mongodb.uri": "mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:${MONGO_DOCKER_PORT}/${MONGO_INITDB_DATABASE}?authSource=${MONGO_INITDB_ROOT_USERNAME}",
"spring.data.mongodb.authentication-database":"${MONGO_INITDB_ROOT_USERNAME}",
"jwt.expiration": "${JWT_EXPIRATION_TIME}",
"jwt.secret": "${JWT_SECRET}",
"path.to.json.file": "${PATH_TO_JSON_FILE}",
"server.servlet.context-path": "/api"
}'
_TOOL_OPTIONS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"