Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
diogene authored Nov 19, 2019
1 parent da5b715 commit f2fb2e9
Showing 1 changed file with 2 additions and 49 deletions.
51 changes: 2 additions & 49 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,17 @@ services:
config:
environment:
CONFIG_SERVICE_PASSWORD: $CONFIG_SERVICE_PASSWORD
image: java
image: sqshq/piggymetrics-config
restart: always
ports:
- 8888:8888
logging:
options:
max-size: "10m"
max-file: "10"
volumes:
- /home/etud/diogene.moulron/TP/08/PiggyMetrics/config/target/config-1.0.0-SNAPSHOT.jar:/usr/share/registry/config-1.0.0-SNAPSHOT.jar
networks:
- default
command: bash -c 'java -jar /usr/share/registry/config-1.0.0-SNAPSHOT.jar --server.port=8888 -Dlogging.level.org.springframework=DEBUG'

registry:
environment:
CONFIG_SERVICE_PASSWORD: $CONFIG_SERVICE_PASSWORD
image: java
image: sqshq/piggymetrics-registry
restart: always
depends_on:
- config
Expand All @@ -36,44 +29,6 @@ services:
options:
max-size: "10m"
max-file: "10"
volumes:
- /home/etud/diogene.moulron/TP/08/PiggyMetrics/registry/target/registry-0.0.1-SNAPSHOT.jar:/usr/share/registry/registry-0.0.1-SNAPSHOT.jar
networks:
- default
command: >
/bin/sh -c "
echo Waiting for config service start...;
while ! curl --user "user:$CONFIG_SERVICE_PASSWORD" --write-out %{http_code} --silent --output /dev/null -f http://config:8888/actuator/health;
do
sleep 1;
done;
echo Connected!
bash -c 'java -jar /usr/share/registry/registry-0.0.1-SNAPSHOT.jar --server.port=8761 -Dlogging.level.org.springframework=DEBUG'
"
admin:
environment:
CONFIG_SERVICE_PASSWORD: $CONFIG_SERVICE_PASSWORD
image: java
restart: always
depends_on:
- registry
ports:
- 9510:8080
volumes:
- /home/etud/diogene.moulron/TP/08/PiggyMetrics/admin/target/admin-1.0-SNAPSHOT.jar:/usr/share/admin/admin-1.0-SNAPSHOT.jar
networks:
- default
command: >
/bin/sh -c "
echo Waiting for config service start...;
while ! curl --user "user:$CONFIG_SERVICE_PASSWORD" --write-out %{http_code} --silent --output /dev/null -f http://config:8888/actuator/health;
do
sleep 1;
done;
echo Connected!
bash -c 'java -jar /usr/share/admin/admin-1.0-SNAPSHOT.jar --server.port=8080 -Dlogging.level.org.springframework=DEBUG';
"

gateway:
environment:
Expand Down Expand Up @@ -146,5 +101,3 @@ services:
options:
max-size: "10m"
max-file: "10"


0 comments on commit f2fb2e9

Please sign in to comment.