-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yml
45 lines (43 loc) · 1.16 KB
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: "3.8"
services:
nginx:
image: nginx:1.15-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
db:
command: ["postgres", "-c", "log_statement=all"]
image: postgres:15
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=app
- POSTGRES_PASSWORD=app
- POSTGRES_HOST_AUTH_METHOD=trust
directus:
build:
context: ./
ports:
- 8055:8055
volumes:
- ./uploads:/directus/uploads
env_file:
- directus.env
environment:
WEBSOCKETS_ENABLED: true
DB_CLIENT: "pg"
DB_CONNECTION_STRING: postgres://app:app@db:5432/app?sslmode\=disable
volumes:
db-data:
driver: local
uploads:
driver: local