-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
51 lines (38 loc) · 1.08 KB
/
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
# Get current directory, without special '.' character
VOLUME=$(subst .,,$(shell basename $(PWD)))
APP_DIR=$(PWD)
TS=$(shell date +%Y%m%d%H%M%S)
develop: clean build run
clean:
docker-compose rm -vf
docker-compose down
build:
docker buildx bake -f docker-compose.yml \
--set app.args.DOCKER_REGISTRY=docker.io/library
# docker-compose up --build --remove-orphans --force-recreate
build-nocache:
docker buildx bake --no-cache -f docker-compose.yml \
--set app.args.DOCKER_REGISTRY=docker.io/library
# http://localhost:8080/index.php/admin/authentication/sa/login
run:
docker-compose up -d
docker-compose logs -f
reset: clean
rm -rf db/data/*
rm -rf backend/config/*
rm -rf backend/plugins/*
rm -rf backend/upload/*
db-start:
docker-compose up -d db
docker-compose logs -f db
app-start:
docker-compose up -d app
docker-compose logs -f app
db-shell:
docker-compose exec db /bin/bash
db-term:
docker-compose exec db /bin/bash -c 'psql -U $${POSTGRES_USER} $${POSTGRES_DB}'
app-shell:
docker-compose exec app /bin/bash
root-app-shell:
docker-compose exec -u root app /bin/bash