Skip to content

Commit

Permalink
Replace agents with corresponding names
Browse files Browse the repository at this point in the history
  • Loading branch information
Selbin committed Oct 15, 2020
1 parent 98c4471 commit 696528d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 42 deletions.
36 changes: 18 additions & 18 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,73 +10,73 @@ services:
networks:
- aries-playground-nw

agent1.localhost:
test-center.localhost:
image: georgejpadayatti/aries-cloudagent:0.5.3
command: /bin/bash -c "./startup.sh"
container_name: agent1.localhost
container_name: test-center.localhost
ports:
- 8051:8001
environment:
AGENT_NAME: Test-Center
ACAPY_ENDPOINT: http://agent1.localhost
ACAPY_ENDPOINT: http://test-center.localhost
GENESIS_URL: https://indy.igrant.io/genesis
WEBHOOK_URL: http://agent1.webhook:8080
WEBHOOK_URL: http://test-center.webhook:8080
volumes:
- ./cloud-agent/startup.sh:/home/indy/startup.sh
networks:
- aries-playground-nw

agent1.webhook:
test-center.webhook:
image: georgejpadayatti/aries-webhook-interceptor:0.1
container_name: agent1.webhook
container_name: test-center.webhook
ports:
- 8081:8080
networks:
- aries-playground-nw

agent2.localhost:
data4Life-user.localhost:
image: georgejpadayatti/aries-cloudagent:0.5.3
command: /bin/bash -c "./startup.sh"
container_name: agent2.localhost
container_name: data4Life-user.localhost
ports:
- 8052:8001
environment:
AGENT_NAME: Data4Life-User
ACAPY_ENDPOINT: http://agent2.localhost
ACAPY_ENDPOINT: http://data4Life-user.localhost
GENESIS_URL: https://indy.igrant.io/genesis
WEBHOOK_URL: http://agent2.webhook:8080
WEBHOOK_URL: http://data4Life-user.webhook:8080
volumes:
- ./cloud-agent/startup.sh:/home/indy/startup.sh
networks:
- aries-playground-nw

agent2.webhook:
data4Life-user.webhook:
image: georgejpadayatti/aries-webhook-interceptor:0.1
container_name: agent2.webhook
container_name: data4Life-user.webhook
ports:
- 8082:8080
networks:
- aries-playground-nw

agent3.localhost:
travel-company.localhost:
image: georgejpadayatti/aries-cloudagent:0.5.3
command: /bin/bash -c "./startup.sh"
container_name: agent3.localhost
container_name: travel-company.localhost
ports:
- 8053:8001
environment:
AGENT_NAME: Travel-Company
ACAPY_ENDPOINT: http://agent3.localhost
ACAPY_ENDPOINT: http://travel-company.localhost
GENESIS_URL: https://indy.igrant.io/genesis
WEBHOOK_URL: http://agent3.webhook:8080
WEBHOOK_URL: http://travel-company.webhook:8080
volumes:
- ./cloud-agent/startup.sh:/home/indy/startup.sh
networks:
- aries-playground-nw

agent3.webhook:
travel-company.webhook:
image: georgejpadayatti/aries-webhook-interceptor:0.1
container_name: agent3.webhook
container_name: travel-company.webhook
ports:
- 8083:8080
networks:
Expand Down
24 changes: 12 additions & 12 deletions nginx/conf.d/acapy.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
server {
listen 80;
listen [::]:80;
server_name agent1.localhost;
server_name test-center.localhost;

location / {
proxy_pass http://agent1.localhost;
proxy_pass http://test-center.localhost;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -16,10 +16,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent1.swagger.localhost;
server_name test-center.swagger.localhost;

location / {
proxy_pass http://agent1.localhost:8001;
proxy_pass http://test-center.localhost:8001;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -31,10 +31,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent2.localhost;
server_name data4life-user.localhost;

location / {
proxy_pass http://agent2.localhost;
proxy_pass http://data4life-user.localhost;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -46,10 +46,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent2.swagger.localhost;
server_name data4life-user.swagger.localhost;

location / {
proxy_pass http://agent2.localhost:8001;
proxy_pass http://data4life-user.localhost:8001;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -61,10 +61,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent3.localhost;
server_name travel-company.localhost;

location / {
proxy_pass http://agent3.localhost;
proxy_pass http://travel-company.localhost;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -76,10 +76,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent3.swagger.localhost;
server_name travel-company.swagger.localhost;

location / {
proxy_pass http://agent3.localhost:8001;
proxy_pass http://travel-company.localhost:8001;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand Down
24 changes: 12 additions & 12 deletions nginx/conf.d/acapy.template
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
server {
listen 80;
listen [::]:80;
server_name agent1.localhost;
server_name test-center.localhost;

location / {
proxy_pass http://agent1.localhost;
proxy_pass http://test-center.localhost;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -16,10 +16,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent1.swagger.localhost;
server_name test-center.swagger.localhost;

location / {
proxy_pass http://agent1.localhost:8001;
proxy_pass http://test-center.localhost:8001;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -31,10 +31,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent2.localhost;
server_name data4life-user.localhost;

location / {
proxy_pass http://agent2.localhost;
proxy_pass http://data4life-user.localhost;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -46,10 +46,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent2.swagger.localhost;
server_name data4life-user.swagger.localhost;

location / {
proxy_pass http://agent2.localhost:8001;
proxy_pass http://data4life-user.localhost:8001;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -61,10 +61,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent3.localhost;
server_name travel-company.localhost;

location / {
proxy_pass http://agent3.localhost;
proxy_pass http://travel-company.localhost;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand All @@ -76,10 +76,10 @@ server {
server {
listen 80;
listen [::]:80;
server_name agent3.swagger.localhost;
server_name travel-company.swagger.localhost;

location / {
proxy_pass http://agent3.localhost:8001;
proxy_pass http://travel-company.localhost:8001;

add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
Expand Down

0 comments on commit 696528d

Please sign in to comment.