-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (59 loc) · 1.57 KB
/
docker-compose.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
version: "3"
services:
web:
image: bitnami/nginx:latest
restart: always
container_name: web
# network_mode: host
ports:
- 80:8080
- 443:8443
volumes:
- /home/nellcorp/modoboa-setup/www:/opt/bitnami/nginx/conf/vhosts:ro
- /srv/modoboa/instance:/app
- ./ssl:/etc/letsencrypt:ro
- /run/uwsgi/app/modoboa_instance/socket:/modoboa-socket:rw
- ./htpasswd:/htpasswd:ro
depends_on:
- ssl
logging:
driver: "json-file"
options:
max-size: "10M"
max-file: "3"
db:
image: mysql:5.7
restart: always
container_name: mysql
# network_mode: host
ports:
- 3306:3306
volumes:
- /var/lib/mysql:/var/lib/mysql
logging:
driver: "json-file"
options:
max-size: "10M"
max-file: "3"
ssl:
image: adferrand/letsencrypt-dns
container_name: ssl
restart: always
volumes:
- ./ssl:/etc/letsencrypt
- ./domains.conf:/etc/letsencrypt/domains.conf
environment:
LETSENCRYPT_USER_MAIL: [email protected]
LEXICON_PROVIDER: route53
LEXICON_ROUTE53_AUTH_USERNAME: ${AWS_ACCESS_KEY_ID}
LEXICON_ROUTE53_AUTH_TOKEN: ${AWS_SECRET_ACCESS_KEY}
LETSENCRYPT_STAGING: "false"
CERTS_DIRS_MODE: "0750" #0755
CERTS_FILES_MODE: "0640" #0644
CERTS_USER_OWNER: ${CERTS_USER_OWNER}
CERTS_GROUP_OWNER: ${CERTS_GROUP_OWNER}
logging:
driver: "json-file"
options:
max-size: "10M"
max-file: "3"