diff --git a/README.md b/README.md index 42a9caa2655c4114d022bbd42c20525d2abd4068..f692ccef5c16684b20b38af78ae4c0dac09da3b7 100644 --- a/README.md +++ b/README.md @@ -60,17 +60,21 @@ To install docker and docker compose, follow the instructions for your platform: ```bash docker network create webproxy ``` +1. Change file mode of `config/acme`: + ```bash + chmod go+w config/acme + ``` 1. Make a copy of all `sample.` files: ```bash for file in sample.*; do cp "$file" "${file#sample.}"; done; ``` -3. Update environment variables `TF_ACME_EMAIL` and `TF_CERTRESOLVER_NAME1` in +1. Update environment variables `TF_ACME_EMAIL` and `TF_CERTRESOLVER_NAME1` in '.env': * Replace `postmaster@mydomain.com` with a valid email address of yours. * Replace `mydomain-com` with a suitable name to identify this certificate resolvers configuration. → Dots (`.`) in the name are not allowed! -5. Start the container in detached mode: +1. Start the container in detached mode: ```bash docker compose up -d ``` diff --git a/sample.docker-compose.yml b/sample.docker-compose.yml index 7180a958ba0d25fd1104d2e29e565750d2cd9fdc..886d8ee55bbd2daa0801c1afc47a2a1d304a28e4 100644 --- a/sample.docker-compose.yml +++ b/sample.docker-compose.yml @@ -11,7 +11,7 @@ services: networks: - webproxy volumes: - - traefik-data:/etc/traefik/acme + - ${TF_HOME:-.}/config/acme:/etc/traefik/acme - ${TF_HOME:-.}/config/files:/etc/traefik/files:ro - /var/run/docker.sock:/var/run/docker.sock:ro environment: @@ -57,6 +57,3 @@ services: networks: webproxy: external: true - -volumes: - traefik-data: