This commit is contained in:
Lorenzo Carbonell 2023-10-13 19:40:53 +02:00
parent f9de0d1d6d
commit c0c626aea6
No known key found for this signature in database
GPG Key ID: B5E8FC9484B82CA9
2 changed files with 11 additions and 7 deletions

View File

@ -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: {}

View File

@ -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