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: