Skip to content

Commit

Permalink
volver al commit de cristian
Browse files Browse the repository at this point in the history
  • Loading branch information
bidof committed Mar 11, 2024
1 parent 954c059 commit 7184641
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
teamname="wiq_es04c"
API_URI="172.167.244.198"
18 changes: 7 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ services:
MYSQL_DATABASE: questions_db
MYSQL_CHARSET: utf8mb4
MYSQL_COLLATION: utf8mb4_unicode_ci
DB_PORT: 3306

DB_PORT: 3306
ports:
- "3306:3306"
volumes:
Expand All @@ -37,7 +36,7 @@ services:

authservice:
container_name: authservice-${teamname:-wiq_es04c}
image: ghcr.io/arquisoft/${teamname:-wiq_es04c}/authservice:latest
image: ghcr.io/arquisoft/wiq_es04c/authservice:latest
profiles: ["dev", "prod"]
build: ./users/authservice
depends_on:
Expand All @@ -51,7 +50,7 @@ services:

userservice:
container_name: userservice-${teamname:-wiq_es04c}
image: ghcr.io/arquisoft/${teamname:-wiq_es04c}/userservice:latest
image: ghcr.io/arquisoft/wiq_es04c/userservice:latest
profiles: ["dev", "prod"]
build: ./users/userservice
depends_on:
Expand All @@ -65,7 +64,7 @@ services:

gatewayservice:
container_name: gatewayservice-${teamname:-wiq_es04c}
image: ghcr.io/arquisoft/${teamname:-wiq_es04c}/gatewayservice:latest
image: ghcr.io/arquisoft/wiq_es04c/gatewayservice:latest
profiles: ["dev", "prod"]
build: ./gatewayservice
depends_on:
Expand All @@ -81,10 +80,9 @@ services:
AUTH_SERVICE_URL: http://authservice:8002
USER_SERVICE_URL: http://userservice:8001


questionservice:
container_name: questionservice-${teamname:-wiq_es04c}
image: ghcr.io/arquisoft/${teamname:-wiq_es04c}/questionservice:latest
image: ghcr.io/arquisoft/wiq_es04c/questionservice:latest
profiles: ["dev", "prod"]
build: ./questionservice
depends_on:
Expand All @@ -99,15 +97,13 @@ services:

webapp:
container_name: webapp-${teamname:-wiq_es04c}
image: ghcr.io/arquisoft/${teamname:-wiq_es04c}/webapp:latest
image: ghcr.io/arquisoft/wiq_es04c/webapp:latest
profiles: ["dev", "prod"]
build: ./webapp
depends_on:
- gatewayservice
ports:
- "3000:3000"
environment:
- API_URI=${API_URI}
- "3000:3000"

prometheus:
image: prom/prometheus
Expand Down
3 changes: 1 addition & 2 deletions webapp/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
REACT_APP_API_ENDPOINT=http://localhost:8000
API_URI=172.167.244.198
REACT_APP_API_ENDPOINT=http://localhost:8000
1 change: 0 additions & 1 deletion webapp/src/components/login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const Login = () => {

const loginUser = async () => {
try {
console.log("ApiEndpoint al hacer login es: "+apiEndpoint)
const response = await axios.post(`${apiEndpoint}/login`, { username, password });

// Extract data from the response
Expand Down

0 comments on commit 7184641

Please sign in to comment.