Skip to content

support podman-restart #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README_PodmanSetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ chmod 666 html/*.json
```bash
podman compose up -d
```

### サーバ再起動時もコンテナを自動起動させる

一般ユーザで以下を実行する

```bash
systemctl --user enable --now podman-restart
```
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- "11790:7900"
# コンテナが使用するメモリの上限を設定
shm_size: "2gb"
restart: unless-stopped
restart: always

# Web スクレイピングを実行するコンテナ
scraping-app:
Expand All @@ -37,7 +37,7 @@ services:
- ./html:/opt/app/html:z
- ./scraping-app/.env:/opt/app/.env:z
tty: true
restart: unless-stopped
restart: always

# RFC翻訳結果を閲覧するためのWebページ
nginx:
Expand All @@ -49,7 +49,7 @@ services:
- "11080:80"
volumes:
- ./html:/usr/share/nginx/html:z
restart: unless-stopped
restart: always

# Jenkinsコンテナ
jenkins:
Expand All @@ -59,4 +59,4 @@ services:
- "11081:8080"
volumes:
- ./jenkins/jenkins_home:/var/jenkins_home:z
restart: unless-stopped
restart: always