Last active
March 15, 2023 18:20
-
-
Save pitermarx/0c1a2666b7eabd05a49dda7b38f32139 to your computer and use it in GitHub Desktop.
Seq docker compose on https://seq.traefik.me:53410
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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