adding in postgres nextcloud sample yaml for futre reference

main
alistair 2 years ago
parent bf69b3d359
commit 5fbf369260

@ -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:
Loading…
Cancel
Save