From 5fbf369260b0c83ca6504aedac842959cb05fbf7 Mon Sep 17 00:00:00 2001 From: alistair Date: Mon, 27 Mar 2023 21:49:07 +0100 Subject: [PATCH] adding in postgres nextcloud sample yaml for futre reference --- nextcloud/compose_postgres.yaml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 nextcloud/compose_postgres.yaml diff --git a/nextcloud/compose_postgres.yaml b/nextcloud/compose_postgres.yaml new file mode 100644 index 0000000..c3c1428 --- /dev/null +++ b/nextcloud/compose_postgres.yaml @@ -0,0 +1,40 @@ +# example docker conpose file using postgres for future reference. +# nextcloud recommends against using sqlite,which is what i'm using! +version: '3' + +services: + app: + image: nextcloud + restart: always + ports: + - 8080:80 + environment: + POSTGRES_HOST: db + POSTGRES_DB: nextcloud + POSTGRES_USER: nextcloud + POSTGRES_PASSWORD: nextcloud + volumes: + - nextcloud:/var/www/html + depends_on: + - db + networks: + - nextcloud_network + + db: + image: postgres + restart: always + environment: + POSTGRES_DB: nextcloud + POSTGRES_USER: nextcloud + POSTGRES_PASSWORD: nextcloud + volumes: + - db:/var/lib/postgresql/data + networks: + - nextcloud_network + +volumes: + nextcloud: + db: + +networks: + nextcloud_network: