File tree 2 files changed +46
-0
lines changed
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM wordpress
2
+ RUN apt-get update &&\
3
+ apt-get -y install procps libvips libvips-dev
4
+
5
+ RUN pecl install vips &&\
6
+ docker-php-ext-enable vips
7
+
8
+ RUN echo "file_uploads = On\n " \
9
+ "memory_limit = 500M\n " \
10
+ "upload_max_filesize = 500M\n " \
11
+ "post_max_size = 500M\n " \
12
+ "max_execution_time = 600\n " \
13
+ > /usr/local/etc/php/conf.d/uploads.ini
Original file line number Diff line number Diff line change
1
+ version : ' 3.3'
2
+
3
+ services :
4
+ db :
5
+ image : mysql:5.7
6
+ volumes :
7
+ - db_data:/var/lib/mysql
8
+ restart : always
9
+ environment :
10
+ MYSQL_ROOT_PASSWORD : somewordpress
11
+ MYSQL_DATABASE : wordpress
12
+ MYSQL_USER : wordpress
13
+ MYSQL_PASSWORD : wordpress
14
+
15
+ wordpress :
16
+ depends_on :
17
+ - db
18
+ build : .
19
+ ports :
20
+ - " 9876:80"
21
+ restart : always
22
+ environment :
23
+ WORDPRESS_DB_HOST : db:3306
24
+ WORDPRESS_DB_USER : wordpress
25
+ WORDPRESS_DB_PASSWORD : wordpress
26
+ WORDPRESS_DB_NAME : wordpress
27
+ volumes :
28
+ - wordpress:/var/www/html
29
+ - ./:/var/www/html/wp-content/plugins/vips-image-editor
30
+ - ./wp-content:/var/www/html/wp-content
31
+ volumes :
32
+ db_data :
33
+ wordpress:
You can’t perform that action at this time.
0 commit comments