-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
35 lines (34 loc) · 1.12 KB
/
docker-compose.yml
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
34
35
version: "3.8"
services:
mysqldb:
platform: linux/x86_64
image: mysql:8
restart: unless-stopped
env_file: .env
environment:
- MYSQL_ROOT_PASSWORD=$MYSQLDB_ROOT_PASSWORD
- MYSQL_DATABASE=$MYSQLDB_DATABASE
ports:
- $MYSQLDB_LOCAL_PORT:$MYSQLDB_DOCKER_PORT
app:
depends_on:
- mysqldb
restart: on-failure
image: docker-car-sharing
build: .
env_file: .env
ports:
- $SPRING_LOCAL_PORT:$SPRING_DOCKER_PORT
- $DEBUG_PORT:$DEBUG_PORT
environment:
SPRING_APPLICATION_JSON: '{
"spring.datasource.url" : "jdbc:mysql://mysqldb:$MYSQLDB_DOCKER_PORT/$MYSQLDB_DATABASE?serverTimezone=UTC",
"spring.datasource.username" : "$DB_USERNAME",
"spring.datasource.password" : "$MYSQLDB_ROOT_PASSWORD",
"spring.jpa.hibernate.ddl-auto" : "validate",
"bot.name" : "$BOT_NAME",
"bot.token" : "$BOT_TOKEN",
"bot.chat" : "$BOT_CHAT_ID",
"stripe.secret-key" : "$STRIPE_SECRET_KEY"
}'
JAVA_TOOL_OPTIONS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"