version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy:latest
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- certs:/etc/nginx/certs:ro
- confd:/etc/nginx/conf.d
- vhostd:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
lables:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion:v1.13
restart: always
volumes:
- certs:/etc/nginx/certs:rw
- confd:/etc/nginx/conf.d
- vhostd:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
synapse:
image: matrixdotorg/synapse
restart: always
expose:
- "8008"
volumes:
- ./synapse-data/_data:/data
environment:
VIRTUAL_HOST:
matrix.test.com VIRTUAL_PORT: 8008
LETSENCRYPT_HOST:
matrix.test.comvolumes:
certs:
confd:
vhostd:
html: