#57 makeRequest uses env variable so all requests use the configuration

This commit is contained in:
2023-04-14 12:55:43 -04:00
parent 1f0e8ca905
commit c1a8f04dc7
7 changed files with 31 additions and 11 deletions

View File

@@ -4,11 +4,29 @@ services:
image: comp2707-frontend
build: frontend/
container_name: comp2707-frontend
environment:
- BACKEND_URL="http://backend:5000"
ports:
- 8080:8080
backend:
image: comp2707-backend
build: backend/
container_name: comp2707-backend
environment:
- DB_HOST=db
- DB_USER=joe
- DB_PASSWORD=mama
ports:
- 5000:5000
db:
image: mariadb:latest
environment:
- MARIADB_USER=joe
- MARIADB_PASWWORD=mama
- MARIADB_ROOT_PASSWORD=mama
volumes:
- db-volume:/var/lib/mysql
volumes:
db-volume:
driver: local