mirror of
https://github.com/atareao/self-hosted.git
synced 2024-06-29 18:45:38 +02:00
acme
This commit is contained in:
parent
f9de0d1d6d
commit
c0c626aea6
|
@ -1,12 +1,15 @@
|
|||
version: "3"
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
|
||||
portainer:
|
||||
image: portainer/portainer-ce:alpine
|
||||
container_name: portainer
|
||||
command: -H unix:///var/run/docker.sock
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./data:/data
|
||||
- data:/data
|
||||
|
||||
volumes:
|
||||
data: {}
|
||||
|
|
|
@ -17,6 +17,11 @@ Change `FQDN` for your server in `.env`,
|
|||
cp sample.env .env
|
||||
```
|
||||
|
||||
Change permissions for `acme.json`,
|
||||
|
||||
```bash
|
||||
chmod 600 ./config/acme.json
|
||||
```
|
||||
|
||||
Generate credentials for your user,
|
||||
|
||||
|
@ -24,16 +29,12 @@ Generate credentials for your user,
|
|||
htpasswd -nb usuario contraseña >> config/users.txt
|
||||
```
|
||||
|
||||
|
||||
Change the email for letsencrypt,
|
||||
|
||||
```bash
|
||||
sed -i "s/tu@correo.es/<tu-correo>/g" config/traefik.yml
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
```bash
|
||||
docker network create proxy
|
||||
docker-compose up -d
|
||||
|
|
Loading…
Reference in New Issue
Block a user