-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·139 lines (136 loc) · 3.54 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# This is the Docker Compose entry point for this project.
# Services listed in this file will automatically be built and started when you bring
# the project up.
version: "3.7"
services:
nginx:
image: nginx:alpine
ports:
- 8080:80
- 8081:81
depends_on:
- core-nginx
- starter
volumes:
- ./services/nginx/default.conf:/etc/nginx/conf.d/default.conf:cached,ro
- ./services/starter/web:/var/www/html/web-starter:cached
- ./core/Elgg:/var/www/html/Elgg:cached
core-nginx:
build:
context: ./services/core-nginx
depends_on:
- mysql
command:
- sh
- -c
- >-
chmod -R 0777 /var/data/elgg-data
exec php-fpm
environment:
MYSQL_DATABASE: web
MYSQL_USER: web
MYSQL_PASSWORD: web
MYSQL_HOST: mysql
WAIT_HOSTS: mysql:3306
WAIT_PATHS: /var/www/html/Elgg/vendor/autoload.php
WAIT_SLEEP_INTERVAL: 3
ELGG_WWWROOT: http://localhost:8081/
ELGG_DATAROOT: /var/data/elgg-data/
ELGG_DB_PREFIX: elgg_
ELGG_SITE_NAME: "Elgg Core"
ELGG_ADMIN_USER: admin
ELGG_ADMIN_EMAIL: [email protected]
ELGG_ADMIN_PASSWORD: Adm1npwd
volumes:
- ./services/core-nginx:/var/www/html:cached
- ./core/Elgg:/var/www/html/Elgg:cached
- ./cli-install.php:/var/www/html/cli-install.php:ro
- type: volume
source: fs-data-core
target: /var/data/elgg-data
core-apache:
build:
context: ./services/core-apache
ports:
- 8082:80
depends_on:
- mysql
command:
- sh
- -c
- >-
chmod -R 0777 /var/data/elgg-data
apache2-foreground
environment:
MYSQL_DATABASE: web
MYSQL_USER: web
MYSQL_PASSWORD: web
MYSQL_HOST: mysql
WAIT_HOSTS: mysql:3306
WAIT_PATHS: /var/www/html/Elgg/vendor/autoload.php
WAIT_SLEEP_INTERVAL: 3
ELGG_WWWROOT: http://localhost:8082/
ELGG_DATAROOT: /var/data/elgg-data/
ELGG_DB_PREFIX: elgg_
ELGG_SITE_NAME: "Elgg Core"
ELGG_ADMIN_USER: admin
ELGG_ADMIN_EMAIL: [email protected]
ELGG_ADMIN_PASSWORD: Adm1npwd
volumes:
- ./core/Elgg:/var/www/html:cached
- type: volume
source: fs-data-core
target: /var/data/elgg-data
starter:
build:
context: ./services/starter
depends_on:
- mysql
command:
- sh
- -c
- >-
chmod -R 0777 /var/data/elgg-data
exec php-fpm
environment:
MYSQL_DATABASE: web
MYSQL_USER: web
MYSQL_PASSWORD: web
MYSQL_HOST: mysql
WAIT_HOSTS: mysql:3306
WAIT_PATHS: /var/www/html/vendor/autoload.php
WAIT_SLEEP_INTERVAL: 3
ELGG_WWWROOT: http://localhost:8080/
ELGG_DATAROOT: /var/data/elgg-data/
ELGG_DB_PREFIX: elgg_starter_
ELGG_SITE_NAME: "Elgg Starter"
ELGG_ADMIN_USER: admin
ELGG_ADMIN_EMAIL: [email protected]
ELGG_ADMIN_PASSWORD: Adm1npwd
volumes:
- ./services/starter:/var/www/html:cached
- ./cli-install.php:/var/www/html/cli-install.php:ro
- type: volume
source: fs-data-starter
target: /var/data/elgg-data
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: web
MYSQL_USER: web
MYSQL_PASSWORD: web
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
ports:
- 13306:3306
volumes:
- type: volume
source: mysql-data
target: /var/lib/mysql
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
volumes:
? fs-data-starter
? fs-data-core
? mysql-data