Skip to content

Instantly share code, notes, and snippets.

@pitermarx
Last active March 15, 2023 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pitermarx/0c1a2666b7eabd05a49dda7b38f32139 to your computer and use it in GitHub Desktop.
Save pitermarx/0c1a2666b7eabd05a49dda7b38f32139 to your computer and use it in GitHub Desktop.
Seq docker compose on https://seq.traefik.me:53410
$certPath = ".\seq\Certificates\443.pem"
$needNewCert = if (Test-Path $certPath) {
$cert=New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($certPath)
#should return true if cert is expired
$cert.NotAfter -lt (Get-Date)
} else {
$true
}
# download certificates if needed
if ($needNewCert) {
curl traefik.me/cert.pem -o "seq/Certificates/443.pem"
curl traefik.me/privkey.pem -o "seq/Certificates/443-key.pem"
}
iex "docker-compose -f seq.yml -p seq --ansi never up --detach"
version: '3.8'
services:
seq:
image: datalust/seq:latest
restart: unless-stopped
deploy:
resources:
limits:
memory: 1024M
volumes:
- ./seq:/data
ports:
- 53410:443 #web UI https
- 5341:5341 #ingestion http
environment:
- ACCEPT_EULA=Y
- SEQ_API_CANONICALURI=https://seq.traefik.me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment