mirror of
https://github.com/sergeyyarkov/astro-directus-example.git
synced 2026-10-11 02:08:57 +03:00
compose.yml
This commit is contained in:
parent
3a945035c7
commit
6152aa0838
17
README.md
Normal file
17
README.md
Normal 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
|
||||
```
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user