diff --git a/docker-compose.yml b/docker-compose.yml index 3c9c817..d1f984b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ services: wordpress-app: - image: wordpress:4.9-php7.2-apache + image: wordpress:4.9-php7.2-fpm restart: always mem_limit: 1g depends_on: @@ -20,7 +20,7 @@ volumes: - ./data/app:/var/www/html ports: - - "${WORDPRESS_HTTP_BIND:-127.0.0.1}:${WORDPRESS_HTTP_PORT:-8000}:80" + - "${WORDPRESS_FPM_BIND:-127.0.0.1}:${WORDPRESS_FPM_PORT:-9003}:9000" links: - wordpress-database:db networks: diff --git a/wordpress.conf.example b/wordpress.conf.example index 199e980..4cbe2d9 100644 --- a/wordpress.conf.example +++ b/wordpress.conf.example @@ -1,10 +1,10 @@ ## wordpress option -# bind address for web port -WORDPRESS_HTTP_BIND=127.0.0.1 +# bind address for php fpm port +WORDPRESS_FPM_BIND=127.0.0.1 # port to bind to -WORDPRESS_HTTP_PORT=8000 +WORDPRESS_HTTP_PORT=9000 ## database configuration