Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit e8d33be

Browse files
committed
minimize instances of letsencrypt
1 parent af274c9 commit e8d33be

File tree

2 files changed

+400
-228
lines changed

2 files changed

+400
-228
lines changed

Diff for: README.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring:
1111

12-
* regular and timely application updates
13-
* easy user mappings (PGID, PUID)
14-
* custom base image with s6 overlay
15-
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
16-
* regular security updates
12+
* regular and timely application updates
13+
* easy user mappings (PGID, PUID)
14+
* custom base image with s6 overlay
15+
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
16+
* regular security updates
1717

1818
Find us at:
1919
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
@@ -23,7 +23,7 @@ Find us at:
2323
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
2424
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
2525

26-
# [linuxserver/letsencrypt](https://github.com/linuxserver/docker-letsencrypt)
26+
# [linuxserver/swag](https://github.com/linuxserver/docker-letsencrypt)
2727

2828
[![GitHub Stars](https://img.shields.io/github/stars/linuxserver/docker-letsencrypt.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver/docker-letsencrypt)
2929
[![GitHub Release](https://img.shields.io/github/release/linuxserver/docker-letsencrypt.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver/docker-letsencrypt/releases)
@@ -36,9 +36,9 @@ Find us at:
3636
[![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=CI&query=CI&url=https%3A%2F%2Flsio-ci.ams3.digitaloceanspaces.com%2Flinuxserver%2Fletsencrypt%2Flatest%2Fci-status.yml)](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/letsencrypt/latest/index.html)
3737

3838
## IMPORTANT NOTICE - BREAKING CHANGES AHEAD
39-
_Due to a trademark related request, this image will move to a new repo soon. The image name and address will be changed. We are working on making the transition as smooth as possible so as not to break current implementations used in production. But be warned that there will be breaking changes ahead, which will require user intervention. Check back here frequently for more updates. Apologies for the the disruptions._
39+
_Due to a trademark related request, this image will move to a new repo soon. The image name and address will be changed. We are working on making the transition as smooth as possible so as not to break current implementations used in production. But be warned that there will be breaking changes ahead, which will require user intervention. Check back here frequently for more updates. Apologies for the the disruption._
4040

41-
SWAG - Secure Web-server And Gateway (formerly known as letsencrypt, no relation to Let's Encrypt™) sets up an Nginx webserver and reverse proxy with php support and a built-in certbot client that automates free SSL server certificate generation and renewal processes. It also contains fail2ban for intrusion prevention.
41+
**SWAG - Secure Web-server And Gateway** (formerly known as letsencrypt, no relation to Let's Encrypt™) sets up an Nginx webserver and reverse proxy with php support and a built-in certbot client that automates free SSL server certificate generation and renewal processes. It also contains fail2ban for intrusion prevention.
4242

4343
[![letsencrypt](https://raw.githubusercontent.com/aptalca/testing/testing/swag.gif)](https://linuxserver.io)
4444

@@ -65,7 +65,7 @@ Here are some example snippets to help you get started creating a container.
6565

6666
```
6767
docker create \
68-
--name=letsencrypt \
68+
--name=swag \
6969
--cap-add=NET_ADMIN \
7070
-e PUID=1000 \
7171
-e PGID=1000 \
@@ -96,9 +96,9 @@ Compatible with docker-compose v2 schemas.
9696
---
9797
version: "2.1"
9898
services:
99-
letsencrypt:
99+
swag:
100100
image: linuxserver/letsencrypt
101-
container_name: letsencrypt
101+
container_name: swag
102102
cap_add:
103103
- NET_ADMIN
104104
environment:
@@ -220,9 +220,9 @@ This will *ask* Google et al not to index and list your site. Be careful with th
220220
3. nginx-botsearch
221221
* To enable or disable other jails, modify the file `/config/fail2ban/jail.local`
222222
* To modify filters and actions, instead of editing the `.conf` files, create `.local` files with the same name and edit those because .conf files get overwritten when the actions and filters are updated. `.local` files will append whatever's in the `.conf` files (ie. `nginx-http-auth.conf` --> `nginx-http-auth.local`)
223-
* You can check which jails are active via `docker exec -it letsencrypt fail2ban-client status`
224-
* You can check the status of a specific jail via `docker exec -it letsencrypt fail2ban-client status <jail name>`
225-
* You can unban an IP via `docker exec -it letsencrypt fail2ban-client set <jail name> unbanip <IP>`
223+
* You can check which jails are active via `docker exec -it swag fail2ban-client status`
224+
* You can check the status of a specific jail via `docker exec -it swag fail2ban-client status <jail name>`
225+
* You can unban an IP via `docker exec -it swag fail2ban-client set <jail name> unbanip <IP>`
226226
* A list of commands can be found here: https://www.fail2ban.org/wiki/index.php/Commands
227227

228228

@@ -234,10 +234,10 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to
234234

235235
## Support Info
236236

237-
* Shell access whilst the container is running: `docker exec -it letsencrypt /bin/bash`
238-
* To monitor the logs of the container in realtime: `docker logs -f letsencrypt`
237+
* Shell access whilst the container is running: `docker exec -it swag /bin/bash`
238+
* To monitor the logs of the container in realtime: `docker logs -f swag`
239239
* container version number
240-
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' letsencrypt`
240+
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' swag`
241241
* image version number
242242
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/letsencrypt`
243243

@@ -249,17 +249,17 @@ Below are the instructions for updating containers:
249249

250250
### Via Docker Run/Create
251251
* Update the image: `docker pull linuxserver/letsencrypt`
252-
* Stop the running container: `docker stop letsencrypt`
253-
* Delete the container: `docker rm letsencrypt`
252+
* Stop the running container: `docker stop swag`
253+
* Delete the container: `docker rm swag`
254254
* Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
255-
* Start the new container: `docker start letsencrypt`
255+
* Start the new container: `docker start swag`
256256
* You can also remove the old dangling images: `docker image prune`
257257

258258
### Via Docker Compose
259259
* Update all images: `docker-compose pull`
260-
* or update a single image: `docker-compose pull letsencrypt`
260+
* or update a single image: `docker-compose pull swag`
261261
* Let compose update all containers as necessary: `docker-compose up -d`
262-
* or update a single container: `docker-compose up -d letsencrypt`
262+
* or update a single container: `docker-compose up -d swag`
263263
* You can also remove the old dangling images: `docker image prune`
264264

265265
### Via Watchtower auto-updater (especially useful if you don't remember the original parameters)
@@ -268,7 +268,7 @@ Below are the instructions for updating containers:
268268
docker run --rm \
269269
-v /var/run/docker.sock:/var/run/docker.sock \
270270
containrrr/watchtower \
271-
--run-once letsencrypt
271+
--run-once swag
272272
```
273273

274274
**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using Docker Compose.

0 commit comments

Comments
 (0)