-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
26 lines (25 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
26 lines (25 loc) · 1.11 KB
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
services:
application:
hostname: ${APPLICATION}
container_name: ${APPLICATION}
build: .
restart: always
ports:
- "${APPLICATION_PORT}:${APPLICATION_PORT}"
volumes:
- ./spring-cloud-config-server-example-properties:/spring-cloud-config-server-example-properties
environment:
ENCRYPT_KEY: ${SPRING_CLOUD_CONFIG_PROPERTIES_ENCRYPT_KEY}
JAVA_OPTS: |
-Dspring.profiles.active=${APPLICATION_PROFILE}
-Dserver.port=${APPLICATION_PORT}
-Dspring.cloud.config.server.git.uri=${SPRING_CLOUD_CONFIG_PROPERTIES_REPOSITORY}
-Dspring.cloud.config.server.git.default-label=${SPRING_CLOUD_CONFIG_PROPERTIES_REPOSITORY_LABEL}
-Dspring.cloud.config.server.git.search-paths=${SPRING_CLOUD_CONFIG_PROPERTIES_REPOSITORY_SEARCH_PATH}/{application}
-Dspring.cloud.config.server.git.force-pull=true
-Dspring.cloud.config.server.git.clone-on-start=true
-Dspring.cloud.config.server.native.searchLocations=file:///spring-cloud-config-server-example-properties/{application}
networks:
default:
external: true
name: ${DOCKER_NETWORK}