-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.07 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
version: '3.1'
services:
wordpress:
container_name: wordpress
image: wordpress:latest
restart: "always"
ports:
- "80:80"
volumes:
- ./wordpress:/var/www/html
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: user
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: wordpress
db:
container_name: mysql
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
restart: "always"
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_RANDOM_ROOT_PASSWORD: '1'
phpmyadmin:
container_name: phpmyadmin
depends_on:
- db
image: phpmyadmin/phpmyadmin
links:
- db
ports:
- "8080:80"
restart: "always"
mailhog:
container_name: mailhog
image: mailhog/mailhog:latest
restart: "always"
ports:
- 1025:1025
- 8025:8025