Skip to content

Commit c72618e

Browse files
committed
feat: add nginx static file server service
1 parent 755831a commit c72618e

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

SERVICES.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Available Services
2-
273 services and counting...
2+
274 services and counting...
33

44
[1](#1)
55
[A](#A)
@@ -219,6 +219,7 @@
219219
- [netbox](https://docs.linuxserver.io/images/docker-netbox) ([yml](https://github.com/traefikturkey/onramp/tree/main/services-available/netbox.yml)): Web-based ip address management (ipam) and data center infrastructure management (dcim) tool
220220
- [newsdash](https://github.com/buzz/newsdash) ([yml](https://github.com/traefikturkey/onramp/tree/main/services-available/newsdash.yml)): Self-hosted rss feed reader and dashboard
221221
- [nextcloud](https://github.com/linuxserver/docker-nextcloud) ([yml](https://github.com/traefikturkey/onramp/tree/main/services-available/nextcloud.yml)): Powerful self-hosted file sync and sharing platform
222+
- [nginx](https://hub.docker.com/_/nginx) ([yml](https://github.com/traefikturkey/onramp/tree/main/services-available/nginx.yml)): High-performance static file server and reverse proxy
222223
- [nightscout](https://github.com/nightscout/cgm-remote-monitor) ([yml](https://github.com/traefikturkey/onramp/tree/main/services-available/nightscout.yml)): web-based CGM (Continuous Glucose Monitor)
223224
- [nocodb](https://github.com/nocodb/nocodb) ([yml](https://github.com/traefikturkey/onramp/tree/main/services-available/nocodb.yml)): Databases As Spreadsheets
224225
- [nodered](https://hub.docker.com/r/nodered/node-red/) ([yml](https://github.com/traefikturkey/onramp/tree/main/services-available/nodered.yml)): Flow-based development tool for visual programming

services-available/nginx.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
networks:
2+
traefik:
3+
external: true
4+
5+
# description: High-performance static file server and reverse proxy
6+
# https://hub.docker.com/_/nginx
7+
8+
services:
9+
nginx:
10+
image: nginx:${NGINX_DOCKER_TAG:-alpine}
11+
container_name: ${NGINX_CONTAINER_NAME:-nginx}
12+
restart: ${NGINX_RESTART:-unless-stopped}
13+
mem_limit: ${NGINX_MEM_LIMIT:-200m}
14+
env_file:
15+
- ./services-enabled/nginx.env
16+
networks:
17+
- traefik
18+
volumes:
19+
- ./media/nginx:/usr/share/nginx/html
20+
- /etc/localtime:/etc/localtime:ro
21+
labels:
22+
- joyride.host.name=${NGINX_HOST_NAME:-nginx}.${HOST_DOMAIN}
23+
- traefik.enable=${NGINX_TRAEFIK_ENABLED:-true}
24+
- traefik.http.routers.nginx.entrypoints=websecure
25+
- traefik.http.routers.nginx.rule=Host(`${NGINX_HOST_NAME:-nginx}.${HOST_DOMAIN}`)
26+
- traefik.http.services.nginx.loadbalancer.server.port=80
27+
- com.centurylinklabs.watchtower.enable=${NGINX_WATCHTOWER_ENABLED:-true}
28+
- autoheal=${NGINX_AUTOHEAL_ENABLED:-true}

0 commit comments

Comments
 (0)