-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlampsql-compose.yml
More file actions
65 lines (54 loc) · 1.35 KB
/
lampsql-compose.yml
File metadata and controls
65 lines (54 loc) · 1.35 KB
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
version: "3.7"
## Volumes Setup
volumes:
sessions:
driver: "local"
## Services Setup
services:
### MySQL Container #########################################
mysql:
hostname: mysql
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
volumes:
- ${DATA_SAVE_PATH}/mysql:/var/lib/mysql
- ./mysql/conf.d/:/etc/mysql/conf.d/
ports:
- target: 3306
published: ${DB_PORT:-3306}
protocol: tcp
mode: host
### Mailhog Container #########################################
mailhog:
hostname: mailhog
image: mailhog/mailhog
ports:
- target: 1025
published: 1025
protocol: tcp
mode: host
- target: 8025
published: 8025
protocol: tcp
mode: host
### phpMyAdmin Container ####################################
phpmyadmin:
hostname: phpmyadmin
image: phpmyadmin/phpmyadmin:5.0.1
volumes:
- sessions:/sessions
environment:
PMA_ARBITRARY: 1
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
UPLOAD_LIMIT: 256000000
ports:
- target: 80
published: ${PHPMYADMIN_PORT:-8080}
protocol: tcp
mode: host