From 10a39855d2e4098d3ba5e6989d9c615143ed5cd3 Mon Sep 17 00:00:00 2001 From: dianjuar Date: Fri, 16 Mar 2018 23:50:13 -0500 Subject: [PATCH] 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 --- docker-compose-production.yml | 1 + docker-compose.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/docker-compose-production.yml b/docker-compose-production.yml index 03698b2..ee7c106 100644 --- a/docker-compose-production.yml +++ b/docker-compose-production.yml @@ -53,6 +53,7 @@ services: - default wp_server: + restart: always build: context: ./docker-images/php/ args: diff --git a/docker-compose.yml b/docker-compose.yml index 060a183..7a9ddb8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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