diff --git a/README.md b/README.md new file mode 100644 index 0000000..923d736 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +Create `webhookd.service` in `/etc/systemd/system`: + +```text +[Unit] +Description=Webhook server +After=network.target +StartLimitIntervalSec=0 +[Service] +Type=simple +Restart=always +RestartSec=1 +User=root +ExecStart=/root/apps/astro-directus-example/bin/webhookd -scripts /root/apps/astro-directus-example/scripts -hook-timeout 1000 + +[Install] +WantedBy=multi-user.target +``` diff --git a/compose.yml b/compose.yml index 06e6303..7c34b8b 100644 --- a/compose.yml +++ b/compose.yml @@ -1,7 +1,7 @@ version: '3.8' services: web: - restart: 'always' + restart: unless-stopped build: context: ./website network: host @@ -23,7 +23,7 @@ services: - './website/nginx/conf.d:/etc/nginx/conf.d:rw' nginx: - restart: 'always' + restart: unless-stopped container_name: nginx image: nginx:1.23.3-alpine volumes: @@ -39,6 +39,7 @@ services: - 'host.docker.internal:host-gateway' database: + restart: unless-stopped image: postgres:15-alpine container_name: database environment: @@ -54,6 +55,7 @@ services: - directus directus: + restart: unless-stopped image: directus/directus:10.0.0 ports: - 8055