forked from xsynaptic/wordpress-gulp-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 966 Bytes
/
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
version: '2'
services:
db:
image: mysql:5.7
volumes:
- ./.data/db:/var/lib/mysql
- ./import.sh:/tmp/import.sh
- ./db.sql:/tmp/db.sql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress
links:
- db
ports:
- "80:80"
volumes:
- ./build/:/var/www/html/wp-content/themes/ufa/
- ./plugins/:/var/www/html/wp-content/plugins
- ./uploads/:/var/www/html/wp-content/uploads
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: wordpress
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db:db
environment:
- PMA_ARBITRARY=1
- PMA_USER=wordpress
- PMA_PASSWORD=wordpress
restart: always
ports:
- 8080:80
volumes:
- /sessions