Skip to content
Snippets Groups Projects
Commit a0a6e830 authored by D4rkHeart's avatar D4rkHeart
Browse files

[Feat] Makefile set-up

- Create commands : up,stop,start,build,list,restart
- Add a variable for the file path to make it easier to read
- Add the creation of a network if one has not already been created
parent becbe273
No related branches found
No related tags found
1 merge request!6[Feat] Docker configuration
DC = docker compose -f ./docker-compose-dev.yml
up: network
$(DC) up -d
stop:
$(DC) down
start: up
$(DC) exec gest sh -c 'npm i --no-funding'
$(DC) exec api bash -c 'composer update && composer install'
build:
$(DC) build
list:
$(DC) ps
restart: stop up
network:
if [ -z "$$(docker network ls -q -f name=canap_network)" ]; then \
docker network create canap_network; \
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment