Add docker-compose file
Add frontend, backend and db
This commit is contained in:
parent
217fbb75a5
commit
7202fdbaeb
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
@ -0,0 +1,29 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
frontend:
|
||||
container_name: qbc_frontend
|
||||
build:
|
||||
context: ./frontend
|
||||
ports:
|
||||
- "8080:80"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
backend:
|
||||
container_name: qbc_backend
|
||||
build:
|
||||
context: ./backend
|
||||
ports:
|
||||
- "5000:80"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
container_name: qbc_database
|
||||
build:
|
||||
context: ./sql
|
||||
volumes:
|
||||
- "./sql/db-data:/var/lib/mysql"
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: "ubc-timetracking"
|
Loading…
Reference in New Issue
Block a user