Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Seq and Nginx and Letsencrypt
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
restart: unless-stopped
container_name: nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
network_mode: bridge
nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
restart: unless-stopped
container_name: nginx-proxy-companion
volumes_from:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge
environment:
DEFAULT_EMAIL: damian.maclennan@domain.com
seq:
image: datalust/seq:latest
restart: unless-stopped
container_name: seq
ports:
- 5341:80
expose:
- 80
network_mode: bridge
environment:
ACCEPT_EULA: Y
BASE_URI: https://seq.domain.com/
SEQ_CACHE_SYSTEMRAMTARGET: 0.8
VIRTUAL_HOST: seq.domain.com
LETSENCRYPT_HOST: seq.domain.com
LETSENCRYPT_EMAIL: damian.maclennan@domain.com
volumes:
- /seqdata:/data
volumes:
conf:
vhost:
html:
dhparam:
certs:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment