-
Notifications
You must be signed in to change notification settings - Fork 221
/
docker-compose.yml
44 lines (41 loc) · 1.04 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
version: '3.1'
services:
wordpress:
image: wordpress:apache
restart: always
ports:
- 80:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
volumes:
- wordpress:/var/www/html
- ./gmap-embed:/var/www/html/wp-content/plugins/gmap-embed
wp-cli:
image: wordpress:cli
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
APACHE_RUN_USER: www-data
APACHE_RUN_GROUP: www-data
volumes:
- wordpress:/var/www/html
- ./install-wp.sh:/usr/local/bin/install-wp
- ./gmap-embed:/var/www/html/wp-content/plugins/gmap-embed
db:
image: mysql:5.7
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
volumes:
wordpress:
db: