services: migrate letsencrypt to swag

This commit is contained in:
Bruno BELANYI 2020-10-18 15:51:54 +02:00
parent 29afe55243
commit 9d49a1eec8
31 changed files with 11 additions and 11 deletions

12
.gitignore vendored
View file

@ -3,11 +3,11 @@
/*/*.env.secret # Just to document that they should definitely never be added /*/*.env.secret # Just to document that they should definitely never be added
# This is not necessary with the wildcard used in the first line, but it is clearer # This is not necessary with the wildcard used in the first line, but it is clearer
/letsencrypt/* /swag/*
!/letsencrypt/nginx/ !/swag/nginx/
/letsencrypt/nginx/* /swag/nginx/*
!/letsencrypt/nginx/proxy-confs/ !/swag/nginx/proxy-confs/
/letsencrypt/nginx/proxy-confs/*.sample /swag/nginx/proxy-confs/*.sample
/letsencrypt/nginx/proxy-confs/README.md /swag/nginx/proxy-confs/README.md

View file

@ -1,16 +1,16 @@
version: "3" version: "3"
services: services:
letsencrypt: swag:
image: linuxserver/letsencrypt image: linuxserver/swag
container_name: letsencrypt container_name: swag
restart: unless-stopped restart: unless-stopped
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
env_file: env_file:
- ./letsencrypt/letsencrypt.env - ./swag/swag.env
volumes: volumes:
- ./letsencrypt:/config - ./swag:/config
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443