-
Notifications
You must be signed in to change notification settings - Fork 129
/
docker-compose-fpm-alpine.yaml
63 lines (59 loc) · 2.07 KB
/
docker-compose-fpm-alpine.yaml
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
version: '2'
services:
roundcubemail:
image: roundcube/roundcubemail:latest-fpm-alpine
container_name: roundcubemail
# restart: unless-stopped
depends_on:
- roundcubedb
links:
- roundcubedb
volumes:
- ./www:/var/www/html
environment:
- ROUNDCUBEMAIL_DB_TYPE=pgsql
- ROUNDCUBEMAIL_DB_HOST=roundcubedb # same as pgsql container name
- ROUNDCUBEMAIL_DB_NAME=roundcube # same as pgsql POSTGRES_DB env name
- ROUNDCUBEMAIL_DB_USER=roundcube # same as pgsql POSTGRES_USER env name
- ROUNDCUBEMAIL_DB_PASSWORD=roundcube # same as pgsql POSTGRES_PASSWORD env name
- ROUNDCUBEMAIL_SKIN=elastic
- ROUNDCUBEMAIL_DEFAULT_HOST=tls://mail.example.org
- ROUNDCUBEMAIL_SMTP_SERVER=tls://mail.example.org
roundcubedb:
image: postgres:alpine
container_name: roundcubedb
# restart: unless-stopped
volumes:
- ./db/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=roundcube
- POSTGRES_USER=roundcube
- POSTGRES_PASSWORD=roundcube
roundcubenginx:
image: nginx:alpine
container_name: roundcubenginx
# restart: unless-stopped
ports:
- 9008:80
# If you need SSL connection
# - '443:443'
depends_on:
- roundcubemail
links:
- roundcubemail
volumes:
- ./www:/var/www/html
- ./nginx/templates:/etc/nginx/templates
# Provide a custom nginx conf
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
# If you need SSL connection, you can provide your own certificates
# - ./certs:/etc/letsencrypt
# - ./certs-data:/data/letsencrypt
environment:
- NGINX_HOST=localhost # set your local domain or your live domain
- NGINX_PHP_CGI=roundcubemail:9000 # same as roundcubemail container name
### Optional: add a full mail server stack to use with Roundcube like https://hub.docker.com/r/tvial/docker-mailserver
# mailserver:
# image: tvial/docker-mailserver:latest
# hostname: mail.example.org
# ... # for more options see https://github.com/tomav/docker-mailserver#examples