My domain is: api.eigenschaften.art
I ran this command:
Caddy was part of a docker-compose:
caddy:
image: abiosoft/caddy:0.11.0-no-stats
container_name: caddy
networks:
- network
depends_on:
- graphql
- json
restart: always
ports:
- '80:80'
- '443:443'
environment:
# use staging url for dev
CA_URL: https://acme-staging-v02.api.letsencrypt.org/directory
volumes:
- ./caddy/Caddyfile:/etc/Caddyfile
- caddy_certs:/root/.caddy
with this Caddyfile:
api.eigenschaften.art {
proxy /graphql localhost:5000
proxy /graphiql localhost:5000
proxy /artendb localhost:4000
proxy /evab localhost:4000
proxy /alt localhost:4000
}
It produced this output:
Activating privacy features...
2020/02/01 10:55:39 [INFO][api.eigenschaften.art] acme: Obtaining bundled SAN certificate
2020/02/01 10:55:40 [api.eigenschaften.art] failed to obtain certificate: acme: Error 429 - urn:ietf:params:acme:error:rateLimited - Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/rate-limits/
What completely baffles me is: This output happened THE FIRST TIME I RAN docker-compose up --force-recreate
after changing the url in the Caddyfile.
My web server is (include version):
Here the complete docker-compose.yml:
version: '3.7'
services:
db:
# specify container name to make it easier to run commands.
# for example, you could run docker exec -i postgres psql -U postgres postgres < schema.sql to run an SQL file against the Postgres database
container_name: db
restart: always
image: db
build:
context: ./db
env_file:
- ./.env
networks:
- network
expose:
- '5432'
ports:
# make the Postgres database accessible from outside the Docker container on port 5432
- '5432:5432'
volumes:
- db_data:/var/lib/postgresql/data
- sik_data:/sik_data
graphql:
container_name: graphql
restart: unless-stopped
build:
context: ./graphql
networks:
- network
expose:
- '5000'
ports:
- '5000:5000'
depends_on:
- db
env_file:
- ./.env
command:
[
'--connection',
'${DATABASE_URL}',
'--schema',
'ae',
'--append-plugins',
'postgraphile-plugin-connection-filter,@graphile-contrib/pg-order-by-related',
'--jwt-token-identifier',
'auth.jwt_token',
'--default-role',
'anon',
'--jwt-secret',
'${JWT_SECRET}',
'--cors',
'--disable-query-log',
'--enable-query-batching',
'--retry-on-init-fail',
]
json:
container_name: json
restart: always
build:
context: ./json
networks:
- network
expose:
- '4000'
ports:
- '4000:4000'
depends_on:
- db
env_file:
- ./.env
caddy:
image: abiosoft/caddy:0.11.0-no-stats
container_name: caddy
networks:
- network
depends_on:
- graphql
- json
restart: always
ports:
- '80:80'
- '443:443'
environment:
# use staging url for dev
CA_URL: https://acme-staging-v02.api.letsencrypt.org/directory
volumes:
- ./caddy/Caddyfile:/etc/Caddyfile
- caddy_certs:/root/.caddy
volumes:
db_data:
sik_data:
caddy_certs:
networks:
network:
The operating system my web server runs on is (include version): Ubuntu Docker 5:19.03.1~3 on 18.04
My hosting provider, if applicable, is: digitalocean.com
I can login to a root shell on my machine (yes or no, or I donāt know): yes
Iām using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if youāre using Certbot): donāt know - using caddy