compose.yml

This commit is contained in:
Sergey Yarkov 2023-05-25 21:14:16 +03:00
parent 3a945035c7
commit 6152aa0838
No known key found for this signature in database
GPG Key ID: E91CE1FABC619B6F
2 changed files with 21 additions and 2 deletions

17
README.md Normal file
View File

@ -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
```

View File

@ -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