This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (79 loc) · 1.94 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
version: '2.1'
volumes:
nginx-certificates:
nginx-virtual_hosts:
nginx-html:
mysql:
networks:
docker-postfix-bridge:
external: true
web-proxy:
driver: bridge
database:
driver: bridge
services:
db:
networks:
- database
image: mysql
# .env-mysql defines `MYSQL_ROOT_PASSWORD`
env_file: .env-mysql
volumes:
- mysql:/var/lib/mysql
nginx-proxy:
networks:
- web-proxy
image: jwilder/nginx-proxy
volumes:
- /var/cache/nginx:/var/cache/nginx:z
- ./my-proxy.conf:/etc/nginx/conf.d/my_proxy.conf:ro
- nginx-certificates:/etc/nginx/certs:ro
- nginx-virtual_hosts:/etc/nginx/vhost.d:Z
- nginx-html:/usr/share/nginx/html:Z
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./passwords:/etc/nginx/htpasswd:ro
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
security_opt:
- label:type:docker_t
env_file:
- .env-htpasswd
healthcheck:
test: ["CMD", "wget", "--quiet", "--spider", "https://wiki.cgal.org/"]
interval: 1m
timeout: 10s
retries: 3
nginx-proxy-companion:
networks:
- web-proxy
image: jrcs/letsencrypt-nginx-proxy-companion
volumes_from:
- nginx-proxy
volumes:
- nginx-certificates:/etc/nginx/certs:Z
- /var/run/docker.sock:/var/run/docker.sock:ro
security_opt:
- label:type:docker_t
wiki:
networks:
- web-proxy
- database
- docker-postfix-bridge
image: cgal/mediawiki:latest
build: .
links:
- db:mysql
env_file:
- .env-mysql
- .env-htpasswd
environment:
- VIRTUAL_HOST=localhost
- MEDIAWIKI_DB_HOST=mysql
- MEDIAWIKI_DB_NAME=cgalwikidb
volumes:
- ${CGAL_WIKI_IMAGES:-./images}:/var/www/html/images:Z
healthcheck:
test: ["CMD", "curl", "--silent", "-f", "http://localhost"]
interval: 1m
timeout: 20s
retries: 2