-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroundcube-stack-example.yml
More file actions
129 lines (119 loc) · 3.42 KB
/
roundcube-stack-example.yml
File metadata and controls
129 lines (119 loc) · 3.42 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# use to create a compose stack template in Portainer
# STACK_BASE_PATH [base folder where to host files, must exists]
# STACK_BASE_PATH=/srv/roundcube ; grep device roundcube-stack-4-compose.yml|grep -v "#"|awk '{print $2}'|while read dir; do eval mkdir -p $dir; done
version: '3.7'
x-default-opts:
&default-opts
restart: unless-stopped
x-environment: &common-vars
TZ: "Europe/Rome"
services:
roundcube:
#image: neomediatech/roundcube:latest-fpm
image: neomediatech/roundcube:latest
container_name: roundcube
hostname: roundcube
<<: *default-opts
ports:
#- 9001:9000
- 81:80
volumes:
- config:/var/roundcube/config
- html:/var/www/html
- pgp_keys:/var/www/roundcube_pgp_keys/
- tmp:/tmp/roundcube-temp
- db:/var/roundcube/db
#- php_config:/usr/local/etc/php/conf.d/zzz_roundcube-custom.ini:ro
#- logs:/var/log
- /etc/mime.types:/etc/mime.types:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /etc/locale.gen:/etc/locale.gen:ro
environment:
<< : *common-vars
ROUNDCUBEMAIL_DB_TYPE: "${ROUNDCUBEMAIL_DB_TYPE:-mysql}"
ROUNDCUBEMAIL_DB_HOST: "${ROUNDCUBEMAIL_DB_HOST:-10.2.0.1}"
#ROUNDCUBEMAIL_DB_NAME: "${ROUNDCUBEMAIL_DB_NAME:-roundcubedb}"
#ROUNDCUBEMAIL_DB_USER: "${ROUNDCUBEMAIL_DB_USER:-roundcube}"
#ROUNDCUBEMAIL_DB_PASSWORD: "${ROUNDCUBEMAIL_DB_PASSWORD:-roundcube}"
ROUNDCUBEMAIL_SKIN: "${ROUNDCUBEMAIL_SKIN:-elastic}"
#ROUNDCUBEMAIL_DEFAULT_HOST: "${ROUNDCUBEMAIL_DEFAULT_HOST:-tls://mail.example.org}"
#ROUNDCUBEMAIL_SMTP_SERVER: "${ROUNDCUBEMAIL_SMTP_SERVER:-tls://mail.example.org}"
ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE: "${ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE:-20M}"
redis:
image: redis:alpine
container_name: redis
hostname: redis
<<: *default-opts
volumes:
- redis:/data
#- logs:/var/log
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /etc/locale.gen:/etc/locale.gen:ro
environment:
<< : *common-vars
radicale:
image: neomediatech/radicale:latest
container_name: radicale
hostname: radicale
<<: *default-opts
volumes:
- radicale:/data
#- logs:/var/log
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /etc/locale.gen:/etc/locale.gen:ro
environment:
<< : *common-vars
IMAP_HOST: "${IMAP_HOST:-10.2.0.1}"
volumes:
config:
driver: local
driver_opts:
type: none
o: bind
device: ${STACK_BASE_PATH}/config
html:
driver: local
driver_opts:
type: none
o: bind
device: ${STACK_BASE_PATH}/www/html
pgp_keys:
driver: local
driver_opts:
type: none
o: bind
device: ${STACK_BASE_PATH}/www/roundcube_pgp_keys
redis:
driver: local
driver_opts:
type: none
o: bind
device: ${STACK_BASE_PATH}/redis/data
radicale:
driver: local
driver_opts:
type: none
o: bind
device: ${STACK_BASE_PATH}/radicale/data
tmp:
driver: local
driver_opts:
type: none
o: bind
device: ${STACK_BASE_PATH}/var/tmp
db:
driver: local
driver_opts:
type: none
o: bind
device: ${STACK_BASE_PATH}/var/db
# php_config:
# driver: local
# driver_opts:
# type: none
# o: bind
# device: ${STACK_BASE_PATH}/zzz_roundcube-custom.ini
#