-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
113 lines (104 loc) · 2.61 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
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
104
105
106
107
108
109
110
111
112
113
version: '3.7'
services:
## SERVICES
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: always
ports:
- "80:80"
volumes:
- ./config/htpasswd:/etc/nginx/htpasswd/v2.arcux.local:ro
- ./config/htpasswd:/etc/nginx/htpasswd/v3.arcux.local:ro
- ./config/htpasswd:/etc/nginx/htpasswd/v4.arcux.local:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpMyadmin
links:
- mysqlone
- mysqltwo
environment:
VIRTUAL_HOST: v2.arcux.local
PMA_VERBOSES: mysqlone,mysqltwo
UPLOAD_LIMIT: 1280M
PMA_ARBITRARY: 1
netdata:
image: netdata/netdata
restart: always
container_name: netdata
hostname: v3.arcux.local
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined
volumes:
- ./config/netdata.conf:/etc/netdata/netdata-etc/claim.d/health_alarm_notify.conf
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- VIRTUAL_HOST=v3.arcux.local
mailhog:
image: mailhog/mailhog
container_name: mail
environment:
VIRTUAL_HOST: v4.arcux.local
VIRTUAL_PORT: 8025
expose:
- "1025"
## SITES
webone:
image: nginx:alpine
container_name: webone
restart: always
volumes:
- ./web1/nginx:/etc/nginx/conf.d:ro
- ./web1/public:/var/www/html:ro
depends_on:
- phpone
- mysqlone
environment:
VIRTUAL_HOST: arcux.local
phpone:
image: nanoninja/php-fpm:7.3.10
container_name: phpone
restart: always
volumes:
- ./web1/public:/var/www/html
mysqlone:
image: mysql:8.0.20
container_name: mysqlone
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_HOST: mysqlone
MYSQL_DATABASE: hola
MYSQL_ROOT_PASSWORD: 123456
volumes:
- ./web1/mysql:/var/lib/mysql
webtwo:
image: nginx:alpine
container_name: webtwo
restart: always
volumes:
- ./web2/nginx:/etc/nginx/conf.d:ro
- ./web2/public:/var/www/html:ro
depends_on:
- phptwo
- mysqltwo
environment:
VIRTUAL_HOST: v1.arcux.local
phptwo:
image: nanoninja/php-fpm:7.3.10
container_name: phptwo
restart: always
volumes:
- ./web2/public:/var/www/html
mysqltwo:
image: mysql:8.0.20
container_name: mysqltwo
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_HOST: mysqltwo
MYSQL_DATABASE: chau
MYSQL_ROOT_PASSWORD: 123456
volumes:
- ./web2/mysql:/var/lib/mysql