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'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
restart: 'always'
|
restart: unless-stopped
|
||||||
build:
|
build:
|
||||||
context: ./website
|
context: ./website
|
||||||
network: host
|
network: host
|
||||||
@ -23,7 +23,7 @@ services:
|
|||||||
- './website/nginx/conf.d:/etc/nginx/conf.d:rw'
|
- './website/nginx/conf.d:/etc/nginx/conf.d:rw'
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
restart: 'always'
|
restart: unless-stopped
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
image: nginx:1.23.3-alpine
|
image: nginx:1.23.3-alpine
|
||||||
volumes:
|
volumes:
|
||||||
@ -39,6 +39,7 @@ services:
|
|||||||
- 'host.docker.internal:host-gateway'
|
- 'host.docker.internal:host-gateway'
|
||||||
|
|
||||||
database:
|
database:
|
||||||
|
restart: unless-stopped
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: database
|
container_name: database
|
||||||
environment:
|
environment:
|
||||||
@ -54,6 +55,7 @@ services:
|
|||||||
- directus
|
- directus
|
||||||
|
|
||||||
directus:
|
directus:
|
||||||
|
restart: unless-stopped
|
||||||
image: directus/directus:10.0.0
|
image: directus/directus:10.0.0
|
||||||
ports:
|
ports:
|
||||||
- 8055
|
- 8055
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user