Skip to content

Commit

Permalink
Improve the restar policy for the service wp_server
Browse files Browse the repository at this point in the history
This is necessary to be up and running to process the php files. So the restart plocy in production is always and in development is only if fails.

This is closly realted with #10
  • Loading branch information
dianjuar committed Mar 17, 2018
1 parent a318d45 commit 10a3985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ services:
- default

wp_server:
restart: always
build:
context: ./docker-images/php/
args:
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ services:
PHP_VERSION: 7.1
# PHP_VERSION: 7.0
# PHP_VERSION: 5.6
restart: on-failure
user: ${UID}:www-data
volumes:
- ./www/wp_files/:/www
Expand Down

0 comments on commit 10a3985

Please sign in to comment.