From 1efd54e56eb550ad80b2bb2fb4b89a52883e7f86 Mon Sep 17 00:00:00 2001 From: Thurloat Date: Thu, 19 Sep 2019 10:32:52 -0300 Subject: [PATCH] anonymous env and add docker-compose file. --- docker-compose.yml | 91 ++++++++++++++++++++++++++++++++++++++++++++++ env/db | 4 ++ env/web | 3 ++ 3 files changed, 98 insertions(+) create mode 100644 docker-compose.yml create mode 100644 env/db create mode 100644 env/web diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bd3a34b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,91 @@ +version: '3' + +services: + db: + image: postgres:alpine + restart: always + volumes: + - db:/var/lib/postgresql/data + env_file: + - env/db + + app: + image: nextcloud:fpm-alpine + dns: 8.8.8.8 + restart: always + volumes: + - nextcloud:/var/www/html + env_file: + - env/db + depends_on: + - db + + web: + build: ./web + restart: always + volumes: + - nextcloud:/var/www/html:ro + env_file: + - env/web + depends_on: + - app + networks: + - proxy-tier + - default + + cron: + image: nextcloud:fpm-alpine + restart: always + volumes: + - nextcloud:/var/www/html + depends_on: + - app + entrypoint: | + sh -c 'sh -s <