Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
replaced internal docker ip addresses with dns names
Browse files Browse the repository at this point in the history
  • Loading branch information
tgymnich committed Dec 22, 2019
1 parent 693a5a1 commit fe40436
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/glowingbear-ssl-proxy/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ cat > /etc/nginx/sites-enabled/glowingbear.conf <<EndOfMessage
index index.html;
location / {
proxy_pass http://172.17.0.1:9080/;
proxy_pass http://glowing-bear:9080/;
proxy_read_timeout 90s;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
Expand Down Expand Up @@ -48,7 +48,7 @@ cat > /etc/nginx/sites-enabled/keycloak.conf <<EndOfMessage
index index.html;
location / {
proxy_pass http://172.17.0.1:8080/;
proxy_pass http://keycloak:8080/;
proxy_read_timeout 90s;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
Expand Down
9 changes: 9 additions & 0 deletions glowingbear-ssl-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ services:
volumes:
- ./ssl/server.pem:/etc/nginx/server.pem
- ./ssl/server.key:/etc/nginx/server.key
networks:
- glowing-bear-docker_keycloak-network
- glowing-bear-docker_nginx-proxy-network
ports:
- 80:80
- 443:443
Expand All @@ -19,3 +22,9 @@ services:
options:
labels: application
tag: glowingbear-ssl-proxy

networks:
glowing-bear-docker_keycloak-network:
external: true
glowing-bear-docker_nginx-proxy-network:
external: true
3 changes: 3 additions & 0 deletions keycloak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ services:
- keycloak-postgres
networks:
- keycloak-db-network
- keycloak-network
volumes:
- ./keycloak/setup-realm.sh:/opt/jboss/startup-scripts/setup-realm.sh
- ./keycloak/realm-template.json:/tmp/realm-template.json
Expand All @@ -60,3 +61,5 @@ volumes:
networks:
keycloak-db-network:
driver: bridge
keycloak-network:
driver: bridge

0 comments on commit fe40436

Please sign in to comment.