docker build -t test-nginx . && \
docker run --rm --add-host authorizer:127.0.0.1 --add-host host.docker.internal:host-gateway test-nginx nginx -t
docker build -t test-nginx . && \
docker run -it --rm --add-host authorizer:127.0.0.1 --add-host host.docker.internal:host-gateway test-nginx
services:
gateway:
image: ghcr.io/kneu-messenger-pigeon/gateway:main
restart: always
ports:
- "8083:80"
- "8443:443"
volumes:
- type: bind
source: /etc/letsencrypt/live/example.org
target: /ssl
read_only: true
extra_hosts:
- "host.docker.internal:host-gateway"
docker run -it --rm -v $(pwd):/export frapsoft/openssl req -x509 -nodes -newkey rsa:4096 -days 1 \
-keyout 'export/privkey.pem' \
-out 'export/fullchain.pem' \
-subj '/CN=localhost'