Skip to content
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

docker-compose.yml: add restart: unless-stopped #3

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 6 additions & 0 deletions templates/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ version: "3.9"
services:
web:
image: ghcr.io/postalserver/postal:{{version}}
restart: unless-stopped
command: postal web-server
network_mode: host
volumes:
- /opt/postal/config:/config

smtp:
image: ghcr.io/postalserver/postal:{{version}}
restart: unless-stopped
command: postal smtp-server
network_mode: host
cap_add:
Expand All @@ -18,20 +20,23 @@ services:

worker:
image: ghcr.io/postalserver/postal:{{version}}
restart: unless-stopped
command: postal worker
network_mode: host
volumes:
- /opt/postal/config:/config

cron:
image: ghcr.io/postalserver/postal:{{version}}
restart: unless-stopped
command: postal cron
network_mode: host
volumes:
- /opt/postal/config:/config

requeuer:
image: ghcr.io/postalserver/postal:{{version}}
restart: unless-stopped
command: postal requeuer
network_mode: host
volumes:
Expand All @@ -40,6 +45,7 @@ services:
runner:
profiles: ["tools"]
image: ghcr.io/postalserver/postal:{{version}}
restart: unless-stopped
command: postal
network_mode: host
volumes:
Expand Down