@@ -7,10 +7,10 @@ services:
77 mariadb :
88 image : mariadb:10.10
99 environment : # Configuration of the database server as specified in their README
10- MYSQL_ROOT_PASSWORD : ${DATABASE_ROOT_PASSWORD?: }
11- MYSQL_DATABASE : ${DATABASE_NAME?: }
12- MYSQL_USER : ${DATABASE_USER?: }
13- MYSQL_PASSWORD : ${DATABASE_PASSWORD?: }
10+ MYSQL_ROOT_PASSWORD : ${DATABASE_ROOT_PASSWORD:? }
11+ MYSQL_DATABASE : ${DATABASE_NAME:? }
12+ MYSQL_USER : ${DATABASE_USER:? }
13+ MYSQL_PASSWORD : ${DATABASE_PASSWORD:? }
1414 ports : # We expose the database on the port specified in the .env file
1515 - ${DATABASE_PORT:-3306}:3306
1616 volumes :
@@ -28,10 +28,11 @@ services:
2828 depends_on : # The backend can only run when the database is up
2929 - mariadb
3030 environment :
31- - ConnectionStrings__DefaultConnection=server=mariadb;port=3306;database=${DATABASE_NAME?: };user=${DATABASE_USER?: };password=${DATABASE_PASSWORD?: }
31+ - ConnectionStrings__DefaultConnection=server=mariadb;port=3306;database=${DATABASE_NAME:? };user=${DATABASE_USER:? };password=${DATABASE_PASSWORD:? }
3232 ports : # We expose this backend on the port specified in the .env file
33- - ${BACKEND_DOTNET_PORT?: }:80
33+ - ${BACKEND_DOTNET_PORT:? }:80
3434
35+ # Service specification for the Node/ExpressJS-based backend
3536 backend-express :
3637 image : webeng-tutorial/backend-express
3738 build :
@@ -40,32 +41,46 @@ services:
4041 - mariadb
4142 environment :
4243 - DATABASE_HOST=mariadb
43- - DATABASE_USER=${DATABASE_USER?: }
44- - DATABASE_PASSWORD=${DATABASE_PASSWORD?: }
45- - DATABASE_NAME=${DATABASE_NAME?: }
44+ - DATABASE_USER=${DATABASE_USER:? }
45+ - DATABASE_PASSWORD=${DATABASE_PASSWORD:? }
46+ - DATABASE_NAME=${DATABASE_NAME:? }
4647 - DATABASE_PORT=3306
4748 ports :
48- - ${BACKEND_EXPRESS_PORT?: }:80
49+ - ${BACKEND_EXPRESS_PORT:? }:80
4950
51+ # Service specification for the Vanilla frontend
5052 frontend-vanilla :
5153 image : webeng-tutorial/frontend-vanilla
5254 build :
5355 context : ./frontend-vanilla
5456 ports :
55- - ${FRONTEND_VANILLA_PORT?:}:80
57+ - ${FRONTEND_VANILLA_PORT:?}:80
58+ environment :
59+ - BACKENDS
60+
61+ frontend-bootstrap :
62+ image : webeng-tutorial/frontend-bootstrap
63+ build :
64+ context : ./frontend-bootstrap
65+ ports :
66+ - ${FRONTEND_BOOTSTRAP_PORT:?}:80
67+ environment :
68+ - BACKENDS
5669
5770 frontend-react :
5871 image : webeng-tutorial/frontend-react
5972 build :
6073 context : ./frontend-react
6174 ports :
62- - ${FRONTEND_REACT_PORT?: }:80
75+ - ${FRONTEND_REACT_PORT:? }:80
6376 environment :
64- - REACT_APP_BACKENDS=${ BACKENDS?:}
77+ - BACKENDS
6578
66- frontend-bootstrap :
67- image : webeng-tutorial/frontend-bootstrap
79+ frontend-vue :
80+ image : webeng-tutorial/frontend-vue
6881 build :
69- context : ./frontend-bootstrap
82+ context : ./frontend-vue
7083 ports :
71- - ${FRONTEND_BOOTSTRAP_PORT?:}:80
84+ - ${FRONTEND_VUE_PORT:?}:80
85+ environment :
86+ - BACKENDS
0 commit comments