-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (74 loc) · 1.85 KB
/
docker-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: 3
services:
# Cloud storage server
#nextcloud:
# IMAP mail server
#dovecot:
# SMTP proxy
#postfix:
# Mail downloader
#fetchmail:
# HTTP/S proxy for nextcloud and plex
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "80:80"
- "443:443"
read_only: true
volumes:
- nginx-cache:/var/cache/nginx
- nginx-pid:/var/run
- nginx-conf:/etc/nginx/conf.d:ro
- nginx-vhost:/etc/nginx/vhost.d:ro
- nginx-html:/usr/share/nginx/html:ro
- nginx-certs:/etc/nginx/certs:ro
network_mode: bridge
# generator of nginx configurations for docker containers
nginx-docker-gen:
image: jwilder/docker-gen
container_name: dockergen
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
read_only: true
volumes_from:
- nginx
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx-proxy/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.docker_gen"
network_mode: bridge
# HTTPS certificate generator
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-proxy-le
read_only: true
volumes_from:
- nginx-proxy
volumes:
- nginx-certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge
# DNS server with local DNS override
#dnsmasq:
# Dynamic DNS daemon
#ddns:
# Media server
#plex:
volumes:
# required to make nginx readonly
nginx-cache:
nginx-pid:
# required for communication between nginx and letsencrypt
nginx-conf:
nginx-certs:
nginx-vhost:
nginx-html:
# nextcloud volumes
#nextcloudconfig:
#drive:
# plex volumes
#plexconfig:
#media:
# Maildir mail storage for dovecot
#mail: