-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
53 lines (43 loc) · 852 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
build:
docker compose --progress=plain build
up:
docker compose up -d
logs:
docker compose logs -f
stop:
docker compose stop
restart: stop up
exec:
docker compose exec apache /bin/bash
init-symfony:
docker compose exec apache sh -c "./init-symfony.sh"
init: build up init-symfony
# Command to remove Symfony project files only
rm-symfony:
docker compose exec apache sh -c \
"rm -rf \
./assets \
./bin \
./config \
./migrations \
./public/index.php \
./src \
./templates \
./tests \
./translations \
./var \
./vendor \
./composer.json \
./composer.lock \
./symfony.lock \
./phpunit.xml.dist \
./.env \
./.env.test \
./.gitignore \
./importmap.php"
# Command to remove Docker containers and volumes
rm-containers:
docker compose down -v
# Command to prune unused Docker data
prune:
docker system prune -f --volumes