-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
76 lines (76 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
version: '3'
services:
# Web aplication service
web:
build:
context: ./web
dockerfile: Dockerfile
container_name: guideup.web
volumes:
- ./web/html:/var/www/html
ports:
- 80:80
- 443:443
links:
- app-database:app-database
- ejabberd-database:ejabberd-database
# database aplication service
app-database:
image: mysql:5.7
container_name: guideup.db
restart: always
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=guideup
- MYSQL_USER=guideup
- MYSQL_PASSWORD=guideuppassword
volumes:
- ./database/data/web:/var/lib/mysql
- ./database/guideup.sql:/docker-entrypoint-initdb.d/guideup.sql
expose:
- 3306
#database web interface
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
ports:
- 8080:80
links:
- app-database:app-database
environment:
- MYSQL_USERNAME=root
- MYSQL_ROOT_PASSWORD=rootpassword
- PMA_ARBITRARY=1
restart: always
volumes:
- /sessions
#chat service
ejabberd:
build:
context: ./ejabberd
dockerfile: Dockerfile
container_name: guideup.chat
tty: true
ports:
- 4560:4560
- 5222:5222
- 5269:5269
- 5280:5280
- 5443:5443
links:
- ejabberd-database
#chat Database
ejabberd-database:
image: mysql:5.7
container_name: guideup.chatdb
restart: always
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=ejabberd
- MYSQL_USER=ejabberd
- MYSQL_PASSWORD=ejabberdpassword
volumes:
- ./database/data/ejabberd:/var/lib/mysql
- ./ejaberd/ejabberd.sql:/docker-entrypoint-initdb.d/ejabberd.sql
expose:
- 3306