ft_transcendence/Docker.mk
apetitco 8debc57559 (backend): trying to have a working backend.
Did I manage to achieve this task: NO.
2025-12-22 15:14:14 +01:00

53 lines
1.6 KiB
Makefile

# **************************************************************************** #
# #
# ::: :::::::: #
# Docker.mk :+: :+: :+: #
# +:+ +:+ +:+ #
# By: nrobinso <nrobinso@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/06/11 18:10:26 by maiboyer #+# #+# #
# Updated: 2025/12/19 14:33:21 by maiboyer ### ########.fr #
# #
# **************************************************************************** #
.PHONY: logs
# TODO: REMOVE THIS BEFORE LAUNCH
# this allows the us to only start the non-monitoring sercices
DOCKER_SERVICE= \
auth \
chat \
tic-tac-toe \
frontend \
nginx \
user \
all: build
docker compose up -d $(DOCKER_SERVICE)
logs:
docker compose logs -f
down:
docker compose down
build:
docker compose build $(DOCKER_SERVICE)
re:
$(MAKE) -f ./Docker.mk clean
$(MAKE) -f ./Docker.mk all
clean:
docker compose down
prune: clean
-if ! [ -z $(shell docker ps -a -q) ] ; then \
docker stop $(shell docker ps -a -q); \
docker rm $(shell docker ps -a -q); \
fi
-docker image prune -a
-docker volume prune
-docker network prune
-docker system prune -a