-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
20 lines (14 loc) · 653 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
start: ## Start the docker containers
@echo "Starting the docker containers"
@docker-compose up
@echo "Containers started - http://localhost:9000"
stop: ## Stop Containers
@docker-compose down
restart: stop start ## Restart Containers
build: ## Build Containers
@docker-compose build
create-db-tables: ## Create mysql tables in the db container
@docker-compose exec -T db mysql -u root --password=freelance freelance < ./freelance/db_schema.sql
create-db-data: ## Create mysql data in the db container
@docker-compose exec -T db mysql -u root --password=freelance freelance < ./freelance/db_data.sql
sync-db: create-db-tables create-db-data