usar apache en vez de fpm
This commit is contained in:
parent
0c237c3be3
commit
2b44725360
@ -17,7 +17,7 @@ wordpress_debug: ""
|
||||
wordpress_config_extra: ""
|
||||
|
||||
# container
|
||||
wordpress_image: wordpress:php7.3-fpm
|
||||
wordpress_image: wordpress
|
||||
wordpress_container: wordpress
|
||||
wordpress_volume: wordpress
|
||||
|
||||
|
@ -54,9 +54,9 @@
|
||||
networks:
|
||||
- name: "{{ docker_network_name }}"
|
||||
ports:
|
||||
# - "{% if wordpress_bind_port is not none %}\
|
||||
# {{ wordpress_bind_host+':' if not wordpress_bind_host is none else '' }}\
|
||||
# {{ wordpress_bind_port }}:9000{% endif %}"
|
||||
- "{% if wordpress_bind_port is not none %}\
|
||||
{{ wordpress_bind_host+':' if not wordpress_bind_host is none else '' }}\
|
||||
{{ wordpress_bind_port }}:80{% endif %}"
|
||||
|
||||
- name: template nginx config
|
||||
copy:
|
||||
@ -67,19 +67,13 @@
|
||||
server_name {{ wordpress_domain }};
|
||||
|
||||
# root /var/www/html;
|
||||
index index.php index.html;
|
||||
# index index.php index.html;
|
||||
# access_log /dev/stdout;
|
||||
# error_log /dev/stdout info;
|
||||
|
||||
location {{ wordpress_web_root }} {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ .php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_pass wordpress:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://{{ wordpress_container }};
|
||||
}
|
||||
}
|
||||
dest: "{{ nginx_config_mountpoint }}/wordpress.conf"
|
||||
|
Loading…
x
Reference in New Issue
Block a user