Skip to content

Commit 10a3985

Browse files
committed
Improve the restar policy for the service wp_server
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
1 parent a318d45 commit 10a3985

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docker-compose-production.yml

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ services:
5353
- default
5454

5555
wp_server:
56+
restart: always
5657
build:
5758
context: ./docker-images/php/
5859
args:

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ services:
2222
PHP_VERSION: 7.1
2323
# PHP_VERSION: 7.0
2424
# PHP_VERSION: 5.6
25+
restart: on-failure
2526
user: ${UID}:www-data
2627
volumes:
2728
- ./www/wp_files/:/www

0 commit comments

Comments
 (0)