From dba66a2d18b1020f6de6e22defd1b5e6df87c894 Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Mon, 2 Oct 2017 16:17:48 +0200 Subject: [PATCH] Add stack.yml --- stack.yml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 stack.yml diff --git a/stack.yml b/stack.yml new file mode 100644 index 0000000..6fe1e2c --- /dev/null +++ b/stack.yml @@ -0,0 +1,53 @@ +version: '3.2' + +services: + db: + image: postgres + restart: always + volumes: + - db:/var/lib/postgresql/data + environment: + - POSTGRES_DB=nextcloud + - POSTGRES_USER=nextcloud + - POSTGRES_PASSWORD=nextcloud + + app: + image: nextcloud + restart: always + ports: + - 8080:80 + volumes: + - nextcloud:/var/www/html + environment: + - POSTGRES_HOST=db + - POSTGRES_DB=nextcloud + - POSTGRES_USER=nextcloud + - POSTGRES_PASSWORD=nextcloud + depends_on: + - db + + cron: + image: nextcloud + restart: always + volumes: + - nextcloud:/var/www/html + user: www-data + entrypoint: | + bash -c 'bash -s <