Skip to content

Commit a961ebe

Browse files
committed
update auto start
1 parent 5af35cd commit a961ebe

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docker-auto-run-linux/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ After=docker.service
2424
Type=oneshot
2525
RemainAfterExit=yes
2626
WorkingDirectory=/home/twtrubiks/my-docker-run
27-
ExecStart=/usr/local/bin/docker-compose up -d
28-
ExecStop=/usr/local/bin/docker-compose down
27+
ExecStartPre=/bin/sleep 3
28+
ExecStart=/usr/bin/docker compose up -d
29+
ExecStop=/usr/bin/docker compose down
2930
TimeoutStartSec=0
3031
3132
[Install]

docker-auto-run-linux/docker-compose-app.service

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ After=docker.service
77
Type=oneshot
88
RemainAfterExit=yes
99
WorkingDirectory=/home/twtrubiks/my-docker-run
10-
ExecStart=/usr/local/bin/docker-compose up -d
11-
ExecStop=/usr/local/bin/docker-compose down
10+
ExecStartPre=/bin/sleep 3
11+
ExecStart=/usr/bin/docker compose up -d
12+
ExecStop=/usr/bin/docker compose down
1213
TimeoutStartSec=0
1314

1415
[Install]

0 commit comments

Comments
 (0)