-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathcompose.yaml
More file actions
49 lines (45 loc) · 962 Bytes
/
compose.yaml
File metadata and controls
49 lines (45 loc) · 962 Bytes
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
services:
server:
build:
context: .
ports:
- "80:80"
volumes:
- web_configs:/var/www/html/persistent_configs
depends_on:
- mysql
- mailhog # Add dependency on mailhog
mysql:
image: mysql:8.0
env_file:
- .env
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-123}
MYSQL_DATABASE: master
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
mailhog:
image: mailhog/mailhog
ports:
# This is the web UI where you will view the emails
- "8025:8025"
# This is the SMTP port PHP will connect to
- "1025:1025"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
UPLOAD_LIMIT: 100M
ports:
- "8080:80"
depends_on:
- mysql
restart: unless-stopped
volumes:
mysql_data:
web_configs: