add new certs to nginx section
This commit is contained in:
@@ -82,19 +82,22 @@ services:
|
|||||||
- ecbackend
|
- ecbackend
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
# openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout tls_localhost_key.pem -out tls_localhost_cert.pem -subj "/C=GB/ST=London/L=London/O=Alros/OU=IT Department/CN=localhost"
|
# see backend/dev_tls_setup for how to generate the tls certs
|
||||||
hostname: synapse.m.localhost
|
hostname: synapse.m.localhost
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend/dev_nginx.conf:/etc/nginx/conf.d/default.conf:Z
|
- ./backend/dev_nginx.conf:/etc/nginx/conf.d/default.conf:Z
|
||||||
- ./backend/tls_localhost_key.pem:/root/ssl/key.pem:Z
|
- ./backend/dev_tls_m.localhost.key:/root/ssl/key.pem:Z
|
||||||
- ./backend/tls_localhost_cert.pem:/root/ssl/cert.pem:Z
|
- ./backend/dev_tls_m.localhost.crt:/root/ssl/cert.pem:Z
|
||||||
ports:
|
ports:
|
||||||
# HOST_PORT:CONTAINER_PORT
|
# HOST_PORT:CONTAINER_PORT
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
- "8008:80"
|
- "8008:80"
|
||||||
- "4443:443"
|
- "4443:443"
|
||||||
|
- "8448:8448"
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
depends_on:
|
depends_on:
|
||||||
- synapse
|
- synapse
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user