-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.sh
More file actions
87 lines (75 loc) · 3.06 KB
/
Copy path.sh
File metadata and controls
87 lines (75 loc) · 3.06 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
docker build -t dublok/proxma:latest -f src/Dockerfile .
docker buildx build --platform linux/amd64,linux/arm64 -t dublok/proxma:latest -f src/Dockerfile .
docker run -it --rm --name proxma -v /var/run/docker.sock:/var/run/docker.sock dublok/proxma:latest
docker run -it --rm --rm --name -v /var/run/docker.sock:/var/run/docker.sock -p 80:80 -p 443:443 dublok/proxma:latest
# BUILD
docker build -t dublok/proxma:latest -f src/Dockerfile .
# NO-CACHE BUILD
docker build -t dublok/proxma:latest -f src/Dockerfile . --no-cache
# Run with shell to debug
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock --entrypoint /bin/sh dublok/proxma:latest
ls -la /usr/local/bin/
###################
### DEBUG:
docker build -t dublok/proxma:dev -f src/Dockerfile . && \
docker run -it --rm --name proxma2 -v /var/run/docker.sock:/var/run/docker.sock -p 80:80 -p 443:443 dublok/proxma:dev
docker exec -it proxma2 /bin/sh
# Connect to the running container
docker exec -it proxma2 /bin/sh
# Check if the proxy rules file exists
ls -la /etc/nginx/conf.d/
# View the contents of the proxy rules file
cat /etc/nginx/conf.d/proxma-proxy-rules.conf
# List certificates
certbot certificates --config-dir /var/proxma/letsencrypt --work-dir /var/proxma/letsencrypt/work --logs-dir /var/proxma/logs
##################
### DEV
# BUILD & PUSH
docker build -t dublok/proxma:dev -f src/Dockerfile . && docker push dublok/proxma:dev
docker buildx build --platform=linux/amd64 -t dublok/proxma:dev -f src/Dockerfile . --push
docker buildx build \
--platform linux/amd64 \
--cache-from=type=registry,ref=dublok/proxma:dev-cache \
--cache-to=type=registry,ref=dublok/proxma:dev-cache,mode=max \
-t dublok/proxma:dev -f src/Dockerfile . --push
docker build -t dublok/proxma:latest -f src/Dockerfile src
docker build -t dublok/proxma:latest -f src/Dockerfile src && docker compose up
docker run --rm \
--name test-app \
--network proxma_default \
--label "proxma.hosts=test.localhost" \
--label "proxma.port=80" \
nginx:alpine
docker run --rm \
--name test-app-ssl \
--network proxma_default \
--label "proxma.hosts=test1.localhost,test2.localhost" \
--label "proxma.port=80" \
--label "proxma.ssl=true" \
--label "proxma.ssl.email=test@localhost" \
nginx:alpine
docker run --rm -d \
--name test-app-redirect \
--network proxma_default \
--label "proxma.hosts=www.test.localhost,test.localhost" \
--label "proxma.port=80" \
--label "proxma.redirects=test.localhost>www.test.localhost" \
nginx:alpine
docker run --rm \
--name test-app-ssl \
--network proxma_default \
--label "proxma.hosts=test1.localhost,test2.localhost" \
--label "proxma.port=80" \
--label "proxma.ssl=true" \
--label "proxma.ssl.email=test@localhost" \
--label "proxma.ssl.provider=letsencrypt" \
nginx:alpine
docker run --rm \
--name test-app-ssl \
--network proxma_default \
--label "proxma.hosts=test1.localhost,test2.localhost" \
--label "proxma.port=80" \
--label "proxma.ssl=true" \
--label "proxma.ssl.email=test@localhost" \
--label "proxma.ssl.provider=development" \
nginx:alpine