-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
87 lines (86 loc) · 2.91 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
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
version: '3'
services:
# -------- NGINX Reverse Proxy -----------
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- '80:80' # expose 80 on host and sent to 80 in container
- '443:443'
environment:
HSTS: "off"
HTTPS_METHOD: "noredirect"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./config/proxy/vhost.d:/etc/nginx/vhost.d
- /mnt/data/www/data/arednteam.htpwd:/etc/nginx/arednteam.htpwd:ro
- /mnt/data/nginx/certs:/etc/nginx/certs
- /mnt/data/www/usercontent:/usr/share/nginx/html:ro
# -------- NGINX LetsEncrypt Companion -----------
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./config/proxy/vhost.d:/etc/nginx/vhost.d
- /mnt/data/nginx/certs:/etc/nginx/certs
# - /mnt/data/nginx/html:/usr/share/nginx/html
- /mnt/data/www/usercontent:/usr/share/nginx/html:rw
environment:
NGINX_PROXY_CONTAINER: nginx-proxy
# ACME_CA_URI: https://acme-staging.api.letsencrypt.org/directory
# -------- APACHE2: downloads server -----------
downloads:
container_name: downloads
environment:
VIRTUAL_HOST: downloads.arednmesh.org
# LETSENCRYPT_HOST: downloads.arednmesh.org
# LETSENCRYPT_EMAIL: [email protected]
image: arednmesh/httpdmd # this will use httpd:latest
expose:
- 80
restart: always
volumes:
- /mnt/data/www/downloads:/usr/local/apache2/htdocs:ro
- ./config/downloads/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
- ./config/downloads/httpd-autoindex.conf:/usr/local/apache2/conf/extra/httpd-autoindex.conf:ro
# -------- APACHE2: usercontent server -----------
usercontent:
container_name: usercontent
environment:
VIRTUAL_HOST: usercontent.arednmesh.org
# LETSENCRYPT_HOST: usercontent.arednmesh.org
# LETSENCRYPT_EMAIL: [email protected]
image: httpd # this will use httpd:latest
expose:
- 80
# - 443
restart: always
volumes:
- /mnt/data/www/usercontent:/usr/local/apache2/htdocs:ro
- ./config/usercontent/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
- ./config/usercontent/httpd-autoindex.conf:/usr/local/apache2/conf/extra/httpd-autoindex.conf:ro
# -------- MONGODB: data server -----------
mongodb:
container_name: mongodb
image: mongo
volumes:
- /mnt/data/db:/data/db:rw
# -------- SYSINFODB: map server -----------
sysinfodb:
container_name: sysinfodb
depends_on:
- mongodb
environment:
VIRTUAL_HOST: data.arednmesh.org
# LETSENCRYPT_HOST: data.arednmesh.org
# LETSENCRYPT_EMAIL: [email protected]
image: arednmesh/sysinfodb # this will use :latest
expose:
- 8080
restart: always
# -------- NETWORKS -----------
networks:
default:
external:
name: proxy