-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
32 lines (31 loc) · 1.04 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
services:
database:
platform: linux/x86_64
image: postgres:15.1
restart: unless-stopped
env_file: ./.env
environment:
POSTGRES_PASSWORD: $DB_PASSWORD
ports:
- $DB_LOCAL_PORT:$DB_DOCKER_PORT
appserver:
depends_on:
- database
restart: on-failure
image: yurch/autoservice
build: .
env_file: ./.env
environment:
SPRING_APPLICATION_JSON: '{
"spring.datasource.url": "jdbc:postgresql://database:$DB_DOCKER_PORT/?sslmode=disable",
"spring.datasource.username": "$DB_USERNAME",
"spring.datasource.password": "$DB_PASSWORD",
"spring.datasource.driverClassName": "org.postgresql.Driver",
"spring.jpa.properties.hibernate.dialect": "org.hibernate.dialect.PostgresPlusDialect",
"spring.jpa.hibernate.ddl-auto": "validate",
"spring.h2.console.enabled": "false"
}'
JAVA_TOOL_OPTIONS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
ports:
- $SPRING_LOCAL_PORT:$SPRING_DOCKER_PORT
- $DEBUG_PORT:$DEBUG_PORT