Initial Nextcloud compose file

This commit is contained in:
Jesper Hess 2018-06-23 16:41:33 +02:00
parent 1bb6ea5eff
commit eee9bd7e04
Signed by untrusted user: graffen
GPG key ID: 351A89E40D763F0F
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,4 @@
POSTGRES_PASSWORD=hest
POSTGRES_DB=nextcloud
POSTGRES_USER=nextcloud

View file

@ -0,0 +1,26 @@
version: '3'
services:
db:
image: postgres
restart: always
volumes:
- db:/var/lib/postgresql/data
env_file:
- nextcloud-db.env
app:
image: nextcloud
ports:
- 8080:80
volumes:
- nextcloud:/var/www/html
restart: always
environment:
- POSTGRES_HOST=db
env_file:
- nextcloud-db.env
depends_on:
- db
volumes:
nextcloud:
db: