File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -25,3 +25,11 @@ chmod 666 html/*.json
25
25
``` bash
26
26
podman compose up -d
27
27
```
28
+
29
+ ### サーバ再起動時もコンテナを自動起動させる
30
+
31
+ 一般ユーザで以下を実行する
32
+
33
+ ``` bash
34
+ systemctl --user enable --now podman-restart
35
+ ```
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
18
18
- " 11790:7900"
19
19
# コンテナが使用するメモリの上限を設定
20
20
shm_size : " 2gb"
21
- restart : unless-stopped
21
+ restart : always
22
22
23
23
# Web スクレイピングを実行するコンテナ
24
24
scraping-app :
@@ -37,7 +37,7 @@ services:
37
37
- ./html:/opt/app/html:z
38
38
- ./scraping-app/.env:/opt/app/.env:z
39
39
tty : true
40
- restart : unless-stopped
40
+ restart : always
41
41
42
42
# RFC翻訳結果を閲覧するためのWebページ
43
43
nginx :
@@ -49,7 +49,7 @@ services:
49
49
- " 11080:80"
50
50
volumes :
51
51
- ./html:/usr/share/nginx/html:z
52
- restart : unless-stopped
52
+ restart : always
53
53
54
54
# Jenkinsコンテナ
55
55
jenkins :
@@ -59,4 +59,4 @@ services:
59
59
- " 11081:8080"
60
60
volumes :
61
61
- ./jenkins/jenkins_home:/var/jenkins_home:z
62
- restart : unless-stopped
62
+ restart : always
You can’t perform that action at this time.
0 commit comments