-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
44 lines (41 loc) · 1.1 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
services:
nginx:
container_name: nginx
image: nginx:stable-alpine-slim
restart: always
network_mode: 'host'
# networks:
# - nginx
ports:
- 80:80
- 443:443
volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx.conf:/etc/nginx/conf.d/default.conf
# - var-lib-nginx:/var/lib/nginx
# - ./bind/var-lib-nginx:/var/lib/nginx
# - etc-nginx-templates:/etc/nginx/templates
# - ./bind/etc-nginx-templates:/etc/nginx/templates
# - ./nginx-html:/usr/share/nginx/html
- ssl:/etc/nginx/ssl
- var-www-certbot:/var/www/certbot:ro
certbot:
container_name: certbot
image: certbot/certbot
volumes:
- var-www-certbot:/var/www/certbot/:rw
- etc-letsencrypt:/etc/letsencrypt
- var-lib-letsencrypt:/var/lib/letsencrypt
- var-log-letsencrypt:/var/log/letsencrypt
networks:
nginx:
external: true
volumes:
var-lib-nginx:
etc-nginx-templates:
ssl:
var-www-certbot:
etc-letsencrypt:
var-lib-letsencrypt:
var-log-letsencrypt: