Skip to content

Instantly share code, notes, and snippets.

@djamp42
Created March 3, 2025 00:14
Show Gist options
  • Save djamp42/d4a791b7a488af4d2825edfd61627886 to your computer and use it in GitHub Desktop.
Save djamp42/d4a791b7a488af4d2825edfd61627886 to your computer and use it in GitHub Desktop.
Graylog docker compose systemd unit file
[Unit]
Description=Graylog Docker Compose Service
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/home/dockeradmin/graylog-docker
ExecStart=/usr/bin/docker compose up -d
ExecStop=/usr/bin/docker compose down
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment