-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
32 lines (30 loc) · 829 Bytes
/
compose.yml
File metadata and controls
32 lines (30 loc) · 829 Bytes
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
services:
nginx:
image: nginx:1.27.4
container_name: nginx
restart: always
ports:
- ${WEB_PORT_HTTPS:-443}:443
- ${WEB_PORT_HTTP:-80}:80
privileged: true
secrets:
- ssl-certificate
- ssl-certificate-key
volumes:
- "${DATA_DIR:-/data}/nginx/html:/usr/share/nginx/html"
- "${DATA_DIR:-/data}/logs/nginx:/var/log/nginx"
configs:
- source: nginx-nginx.conf
target: /etc/nginx/nginx.conf
- source: nginx-default.conf
target: /etc/nginx/conf.d/default.conf
secrets:
ssl-certificate:
file: ${SSL_CERTIFICATE:?required}.crt
ssl-certificate-key:
file: ${SSL_CERTIFICATE:?required}.key
configs:
nginx-nginx.conf:
file: ./conf/nginx.conf
nginx-default.conf:
file: ./conf/default.conf