-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
76 lines (68 loc) · 1.57 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
version: '3'
networks:
socialhose:
services:
socialhose-php:
build:
context: docker/php-apache
args:
UID: ${UID}
container_name: socialhose-php
working_dir: /var/www/html
networks:
- socialhose
volumes:
- ./:/var/www/html
environment:
- APACHE_DOCUMENT_ROOT=/var/www/html/web
ports:
- "8081:80"
socialhose-mysql:
image: mysql:5.7
container_name: socialhose-mysql
networks:
- socialhose
volumes:
- ./docker/mysql/data:/var/lib/mysql
- ./docker/mysql/init.sql:/etc/mysql/init.sql
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=socialhose
- MYSQL_USER=sh-user
- MYSQL_PASSWORD=root
command: --init-file /etc/mysql/init.sql
ports:
- 33066:3306
socialhose-rabbit:
build: docker/rabbit
container_name: socialhose-rabbit
working_dir: /var/www/html
networks:
- socialhose
volumes:
- ./:/var/www/html
socialhose-elastic:
image: elasticsearch:5.6.9
container_name: socialhose-elastic
working_dir: /var/www/html
networks:
- socialhose
ports:
- "9200:9200"
socialhose-elastichq:
image: elastichq/elasticsearch-hq
container_name: socialhose-elastic-hq
working_dir: /var/www/html
networks:
- socialhose
ports:
- "5000:5000"
socialhose-mail:
image: mailhog/mailhog
container_name: socialhose-mail
networks:
- socialhose
ports:
- "8025:8025"
- "1025:1025"