Skip to content

Instantly share code, notes, and snippets.

@DamianMac
Last active February 14, 2023 18:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DamianMac/d52a1f0b573fa6542c8132cb9ab1e7f6 to your computer and use it in GitHub Desktop.
Save DamianMac/d52a1f0b573fa6542c8132cb9ab1e7f6 to your computer and use it in GitHub Desktop.
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