-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
73 lines (65 loc) · 1.35 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
services:
basicphp:
build: src
ports:
- "30080:80"
- "30443:443"
volumes:
- ./src/basic:/var/www/html
links:
- basicdb
extra_hosts:
- "dojo-basic:127.0.0.2"
- "dojo-basic.wtf:127.0.0.2"
depends_on:
- basicdb
scavengerphp:
build: src
ports:
- "31080:80"
- "31443:443"
volumes:
- ./src/scavenger:/var/www/html
links:
- scavengerdb
depends_on:
- scavengerdb
helpdesk:
build: src
ports:
- "32080:80"
- "32443:443"
volumes:
- ./src/helpdesk:/var/www/html
links:
- basicdb
depends_on:
- basicdb
dojo-basic-lite:
build: src
ports:
- "33080:80"
- "33443:443"
environment:
- DOJO_DB_TYPE=sqlite
extra_hosts:
- "dojo-basic:127.0.0.2"
- "dojo-basic.wtf:127.0.0.2"
volumes:
- ./sqlite_data:/var/www/html/db
- ./src/basic:/var/www/html
basicdb:
image: mysql:5.7
volumes:
- /var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=samurai
- MYSQL_DATABASE=samurai_dojo_basic
scavengerdb:
image: mysql:5.7
volumes:
- /var/lib/mysql
- ./src/scavenger/scavenger.sql:/docker-entrypoint-initdb.d/scavenger.sql
environment:
- MYSQL_ROOT_PASSWORD=samurai
- MYSQL_DATABASE=samurai_dojo_scavenger