-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 775 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 775 Bytes
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
# Makefile minimal
# target: start-prod -> builds and starts the production stack
.PHONY: start-prod stop logs ps build clean clean-images prune deploy-https
start-prod:
./start_prod.sh
stop:
docker compose down
logs:
docker compose logs -f fungame
ps:
docker compose ps
build:
docker compose build fungame
# Safe cleanup: stop the compose stack and remove volumes/orphans
clean:
docker compose down --volumes --remove-orphans
# Remove the local fungame image if you want (non-destructive by default)
clean-images:
docker rmi fungame:latest || true
# Prune unused Docker objects (use with care)
prune:
docker system prune --volumes -f
# Deploy with HTTPS reverse-proxy (requires mkcert certificates in deploy/certs)
deploy-https:
./scripts/deploy_https.sh