Amélioration de la structure du projet et démarrage de Docker OK

This commit is contained in:
2022-04-07 13:07:00 +02:00
parent 5c116e15b1
commit 8ac12f715c
14 changed files with 415 additions and 180 deletions

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
CI_COMPOSE=FIXUID=$(shell id -u) FIXGID=$(shell id -g) docker-compose -f docker-compose.yml
LOGINAPP_SHELL_USER ?= www-data:
up:
FIXUID=$(shell id -u) FIXGID=$(shell id -g) docker-compose up --build
down:
docker-compose down -v
purge:
docker-compose down -v --remove-orphans --rmi local
loginapp-shell:
$(CI_COMPOSE) exec \
-u "$(LOGINAPP_SHELL_USER)" \
loginapp \
/bin/bash