From 01dd1a93f155063cafff99e9014c74a9988f5009 Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Wed, 16 Aug 2017 20:57:33 +0200 Subject: [PATCH] Add depends_on --- .../insecure/mariadb-cron-redis/apache/docker-compose.yml | 6 ++++++ .../insecure/mariadb-cron-redis/fpm/docker-compose.yml | 8 ++++++++ .../insecure/mariadb/apache/docker-compose.yml | 2 ++ .../insecure/mariadb/fpm/docker-compose.yml | 4 ++++ .../insecure/postgres/apache/docker-compose.yml | 2 ++ .../insecure/postgres/fpm/docker-compose.yml | 4 ++++ 6 files changed, 26 insertions(+) diff --git a/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml index b5ba533..8b85c4d 100644 --- a/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb-cron-redis/apache/docker-compose.yml @@ -25,6 +25,9 @@ services: - nextcloud:/var/www/html env_file: - db.env + depends_on: + - db + - redis cron: build: ./app @@ -45,6 +48,9 @@ services: sleep 15m done EOF' + depends_on: + - db + - redis volumes: db: diff --git a/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/docker-compose.yml b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/docker-compose.yml index f9a663c..d595531 100644 --- a/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb-cron-redis/fpm/docker-compose.yml @@ -23,6 +23,9 @@ services: - nextcloud:/var/www/html env_file: - db.env + depends_on: + - db + - redis web: build: ./web @@ -31,6 +34,8 @@ services: - 8080:80 volumes: - nextcloud:/var/www/html:ro + depends_on: + - app cron: build: ./app @@ -51,6 +56,9 @@ services: sleep 15m done EOF' + depends_on: + - db + - redis volumes: db: diff --git a/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml b/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml index 475032c..13a910f 100644 --- a/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb/apache/docker-compose.yml @@ -21,6 +21,8 @@ services: - nextcloud:/var/www/html env_file: - db.env + depends_on: + - db volumes: db: diff --git a/.examples/docker-compose/insecure/mariadb/fpm/docker-compose.yml b/.examples/docker-compose/insecure/mariadb/fpm/docker-compose.yml index 4bd0182..e0c4a2e 100644 --- a/.examples/docker-compose/insecure/mariadb/fpm/docker-compose.yml +++ b/.examples/docker-compose/insecure/mariadb/fpm/docker-compose.yml @@ -19,6 +19,8 @@ services: - nextcloud:/var/www/html env_file: - db.env + depends_on: + - db web: build: ./web @@ -27,6 +29,8 @@ services: - 8080:80 volumes: - nextcloud:/var/www/html:ro + depends_on: + - app volumes: db: diff --git a/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml b/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml index bfadd60..3043a59 100644 --- a/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml +++ b/.examples/docker-compose/insecure/postgres/apache/docker-compose.yml @@ -18,6 +18,8 @@ services: - nextcloud:/var/www/html env_file: - db.env + depends_on: + - db volumes: db: diff --git a/.examples/docker-compose/insecure/postgres/fpm/docker-compose.yml b/.examples/docker-compose/insecure/postgres/fpm/docker-compose.yml index 85f2458..4df0a79 100644 --- a/.examples/docker-compose/insecure/postgres/fpm/docker-compose.yml +++ b/.examples/docker-compose/insecure/postgres/fpm/docker-compose.yml @@ -16,6 +16,8 @@ services: - nextcloud:/var/www/html env_file: - db.env + depends_on: + - db web: build: ./web @@ -24,6 +26,8 @@ services: - 8080:80 volumes: - nextcloud:/var/www/html:ro + depends_on: + - app volumes: db: