-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
103 lines (95 loc) · 2.17 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: reverse_proxy
ports:
- "80:80" #HTTP
- "443:443" #HTTPS
environment:
- "VIRTUAL_PROTO=https"
- "DEFAULT_HOST=test.local" #access from IP
volumes:
- /var/run/docker.sock:/tmp/docker.sock
- ./certs:/etc/nginx/certs
- vhostd:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
restart: always
wordpress1:
build: ./docker
container_name: wordpress_1
links:
- mariadb:mysql
expose:
- 80
environment:
- WORDPRESS_DB_PASSWORD=qwertyqwerty
- WORDPRESS_DB_USER=userwp
- WORDPRESS_DB_NAME=wpdb
- "VIRTUAL_PORT=80"
- "VIRTUAL_HOST=test.local"
volumes:
- ./wordpress:/var/www/html
restart: always
wordpress2:
build: ./docker
container_name: wordpress_2
links:
- mariadb:mysql
expose:
- 80
environment:
- WORDPRESS_DB_PASSWORD=qwertyqwerty
- WORDPRESS_DB_USER=userwp
- WORDPRESS_DB_NAME=wpdb
- "VIRTUAL_PORT=80"
- "VIRTUAL_HOST=test.local"
volumes:
- ./wordpress:/var/www/html
restart: always
wordpress3:
build: ./docker
container_name: wordpress_3
links:
- mariadb:mysql
expose:
- 80
environment:
- WORDPRESS_DB_PASSWORD=qwertyqwerty
- WORDPRESS_DB_USER=userwp
- WORDPRESS_DB_NAME=wpdb
- "VIRTUAL_PORT=80"
- "VIRTUAL_HOST=test.local"
volumes:
- ./wordpress:/var/www/html
restart: always
mariadb:
image: mariadb
container_name: database
environment:
- MYSQL_ROOT_PASSWORD=qwerty
- MYSQL_DATABASE=wpdb
- MYSQL_USER=userwp
- MYSQL_PASSWORD=qwertyqwerty
volumes:
- ./database:/var/lib/mysql
redis:
image: redis:4.0.9
container_name: redis_cache
restart: always
ports:
- "6379:6379"
volumes:
- ./redis_conf:/usr/local/etc/redis
netdata:
container_name: netdata
ports:
- '19999:19999'
volumes:
- '/proc:/host/proc:ro'
- '/sys:/host/sys:ro'
- '/var/run/docker.sock:/var/run/docker.sock:ro'
image: netdata/netdata
volumes:
html:
vhostd: