#57 Added frontend env files for local and production.

This commit is contained in:
2023-04-14 13:55:34 -04:00
parent c1a8f04dc7
commit 275f0f0914
7 changed files with 40 additions and 15 deletions

View File

@@ -3,29 +3,30 @@ services:
frontend:
image: comp2707-frontend
build: frontend/
depends_on:
- backend
container_name: comp2707-frontend
environment:
- BACKEND_URL="http://backend:5000"
ports:
- 8080:8080
backend:
image: comp2707-backend
build: backend/
depends_on:
- db
container_name: comp2707-backend
environment:
- DB_HOST=db
- DB_USER=joe
- DB_PASSWORD=mama
- DATABASE_URL=mysql://root:mama@db/2707
ports:
- 5000:5000
- 5001:5000
db:
image: mariadb:latest
environment:
- MARIADB_USER=joe
- MARIADB_PASWWORD=mama
- MARIADB_ROOT_PASSWORD=mama
- MARIADB_DATABASE=2707
volumes:
- db-volume:/var/lib/mysql
ports:
- 3406:3306
volumes:
db-volume: