Skip to content

Commit c5c7900

Browse files
committed
build for arm
1 parent 29aaa39 commit c5c7900

File tree

2 files changed

+80
-12
lines changed

2 files changed

+80
-12
lines changed

.github/workflows/build-image.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: Create and publish a Docker image
22

33
# Configures this workflow to run every time a tag is pushed.
44
on:
5-
push:
6-
tags:
7-
- '*'
5+
release:
6+
types: [published]
87

98
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
109
env:
@@ -25,6 +24,11 @@ jobs:
2524
- name: Checkout repository
2625
uses: actions/checkout@v4
2726

27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@v2
29+
with:
30+
platforms: linux/amd64,linux/arm64
31+
2832
- name: Log in to the Container registry
2933
uses: docker/login-action@v2
3034
with:
@@ -36,9 +40,9 @@ jobs:
3640
id: meta
3741
uses: docker/metadata-action@v4
3842
with:
39-
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
43+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}
4044
tags: |
41-
type=ref,event=tag
45+
${{ github.event.release.tag_name }}
4246
labels: |
4347
type=ref,event=tag
4448
@@ -50,6 +54,7 @@ jobs:
5054
push: true
5155
tags: ${{ steps.meta.outputs.tags }}
5256
labels: ${{ steps.meta.outputs.labels }}
57+
platforms: linux/amd64,linux/arm64
5358

5459
- name: Generate artifact attestation
5560
uses: actions/attest-build-provenance@v1

README.md

Lines changed: 70 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
11
# coolify-nginx-reverse-proxy
22

3-
# running on coolify
3+
A lightweight, flexible NGINX reverse proxy designed for seamless deployment with [Coolify](https://coolify.io/) or standalone Docker environments. Effortlessly proxy traffic to your internal services with minimal configuration.
44

5-
- Create a resource under a project
6-
- Docker Image: `ghcr.io/andreitere/coolify-nginx-reverse-proxy` Tag: `latest`
7-
- Env Var `PROXY_HOST` set to something like: `http://192.168.1.21:8123`
8-
- Set the domain you want to proxy, e.g. `https://test001.mydomain.com`
9-
- Save and redeploy
5+
> **Perfect for exposing services running on the same network but outside your Coolify instance!**
106
11-
# running locally
7+
---
8+
9+
## 🚀 Features
10+
11+
- **Plug-and-play**: Deploy instantly with Coolify or Docker
12+
- **Dynamic proxying**: Easily set your backend target via environment variables
13+
- **Multiple config templates**: Choose from prebuilt NGINX configs (default, basic, authentik, immich)
14+
- **SSL/TLS ready**: Works with your domain and Coolify's SSL automation
15+
- **Minimal footprint**: Small, efficient Docker image
16+
17+
---
18+
19+
## ⚡ Quick Start
20+
21+
### Deploy on Coolify
22+
23+
1. **Create a resource** under your project in Coolify
24+
2. **Docker Image**: `ghcr.io/andreitere/coolify-nginx-reverse-proxy`
25+
**Tag**: `latest`
26+
3. **Set Env Var**: `PROXY_HOST` (e.g. `http://192.168.1.21:8123`)
27+
4. **Set Domain**: The domain you want to proxy (e.g. `https://test001.mydomain.com`)
28+
5. **Save and redeploy**
29+
30+
### Run Locally with Docker
1231

1332
```shell
1433
docker run \
@@ -18,3 +37,47 @@ docker run \
1837
--build-arg CONF_TYPE=${CONF_TYPE:-default} \
1938
ghcr.io/andreitere/coolify-nginx-reverse-proxy:latest
2039
```
40+
41+
---
42+
43+
## ⚙️ Configuration
44+
45+
- **PROXY_HOST** (required): The backend service URL to proxy to (e.g. `http://192.168.1.21:8123`)
46+
- **CONF_TYPE** (optional, build-arg): Selects the NGINX config template. Options:
47+
- `default` (default)
48+
- `basic`
49+
- `authentik`
50+
- `immich`
51+
- **Domain**: Set in Coolify to match your public-facing domain
52+
53+
### Example: Custom Config
54+
To use a different config, set the build arg:
55+
```shell
56+
--build-arg CONF_TYPE=authentik
57+
```
58+
59+
---
60+
61+
## 💡 Example Use Cases
62+
- Expose a Home Assistant instance securely to the internet
63+
- Proxy an internal dashboard with authentication
64+
- Use as a simple gateway for self-hosted apps
65+
- **Expose services running on the same network but outside your Coolify instance**
66+
67+
---
68+
69+
## 🤝 Contributing
70+
Pull requests and issues are welcome! For major changes, please open an issue first to discuss what you’d like to change.
71+
72+
---
73+
74+
## 📄 License
75+
MIT License. See [LICENSE](LICENSE) for details.
76+
77+
---
78+
79+
## 🔗 Links
80+
- [Coolify Documentation](https://coolify.io/docs)
81+
- [NGINX Documentation](https://nginx.org/en/docs/)
82+
- [Docker Hub](https://hub.docker.com/)
83+
- [Project Repository](https://github.com/andreitere/coolify-nginx-reverse-proxy)

0 commit comments

Comments
 (0)