-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.88 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: "3"
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
build:
context: .
dockerfile: docker/WordPress.Dockerfile
ports:
- "1234:80"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_TABLE_PREFIX: "wp_"
WORDPRESS_DEBUG: 1
UPLOAD_LIMIT: 64M
# shared volumes
volumes:
- "./wp_data:/var/www/html"
- "./themes:/var/www/html/wp-content/themes:rw"
- "./mu-plugins:/var/www/html/wp-content/mu-plugins:rw"
# increase allowed upload file size so that we can import shop data:
- ./docker/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
# uncomment/modify the following line to plugin code available for local search/debugging:
# - ./plugins/:/var/www/html/wp-content/plugins
wordpress-cli:
depends_on:
- db
- wordpress
links:
- db
image: wordpress:cli
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_TABLE_PREFIX: "wp_"
WORDPRESS_DEBUG: 1
command: []
entrypoint: []
# This is required to run wordpress-cli with the same
# user-id as wordpress. This way there are no permission problems
# when running the cli
user: xfs
# shared volume
volumes:
- "./wp_data:/var/www/html"
- "./themes:/var/www/html/wp-content/themes:rw"
# uncomment/modify the following line to import saved content
# - ./content.xml:/var/www/html/content.xml
volumes:
db_data:
# shared volume
wp_data: