There was an error while loading. Please reload this page.
1 parent 78f290a commit 3759bf4Copy full SHA for 3759bf4
1 file changed
infra/osmsg.service
@@ -1,16 +1,17 @@
1
[Unit]
2
Description=osmsg stats stack
3
Requires=docker.service
4
+BindsTo=docker.service
5
After=docker.service network-online.target
6
Wants=network-online.target
7
8
[Service]
-Type=simple
9
-Restart=on-failure
10
-RestartSec=10
+Type=oneshot
+RemainAfterExit=yes
11
WorkingDirectory=/opt/osmsg/infra
12
EnvironmentFile=/opt/osmsg/infra/.env
13
-ExecStart=/usr/bin/docker compose up
+ExecStartPre=/usr/bin/docker compose pull
14
+ExecStart=/usr/bin/docker compose up -d --remove-orphans
15
ExecStop=/usr/bin/docker compose down
16
TimeoutStartSec=300
17
TimeoutStopSec=60
0 commit comments