-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
57 lines (55 loc) · 1.07 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
version: '3'
services:
mail:
build:
context: ./mail
dockerfile: Dockerfile
args:
fqdn: ${FQDN}
container_name: mail
ports:
- "0.0.0.0:25:25"
- "0.0.0.0:587:587"
- "0.0.0.0:465:465"
- "0.0.0.0:110:110"
- "0.0.0.0:995:995"
expose:
- 993
- 143
cap_add:
- NET_ADMIN
extra_hosts:
- "${FQDN}:127.0.0.1"
hostname: ${FQDN}
domainname: ${FQDN}
web:
build:
context: ./web
dockerfile: Dockerfile
args:
fqdn: ${FQDN}
email: ${EMAIL}
container_name: web
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
cap_add:
- NET_ADMIN
volumes:
- ./web/www:/var/www
environment:
- DOMAIN=${FQDN}
- EMAIL=${EMAIL}
- LETSENCRYPT=${LETSENCRYPT}
extra_hosts:
- "${FQDN}:127.0.0.1"
hostname: ${FQDN}
# rainloop:
# image: hardware/rainloop
# container_name: rainloop
# volumes:
# - ./rainloop:/rainloop/data
# depends_on:
# - mail
# ports:
# - "127.0.0.1:8888:8888"