forked from thinred/roundcube-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml.sample
More file actions
37 lines (34 loc) · 940 Bytes
/
docker-compose.yml.sample
File metadata and controls
37 lines (34 loc) · 940 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
33
34
35
36
37
version: "2.3"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- "/home/example/nginx/vhost.d:/etc/nginx/vhost.d"
- "/home/example/nginx/html:/usr/share/nginx/html"
- "/home/example/nginx/certs:/etc/nginx/certs"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
letsencrypt-nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
volumes_from:
- "nginx-proxy"
roundcube:
build: ./roundcube
image: roundcube
container_name: roundcube
restart: unless-stopped
environment:
- VIRTUAL_HOST=mail.example.com
- LETSENCRYPT_HOST=mail.example.com
- LETSENCRYPT_EMAIL=example@example.com
volumes:
- "rc-data:/rc"
volumes:
rc-data:
driver: local