forked from data.coop/ansible
Initial Nextcloud compose file
This commit is contained in:
parent
1bb6ea5eff
commit
eee9bd7e04
4
roles/docker/files/composefiles/nextcloud-db.env
Normal file
4
roles/docker/files/composefiles/nextcloud-db.env
Normal file
|
@ -0,0 +1,4 @@
|
|||
|
||||
POSTGRES_PASSWORD=hest
|
||||
POSTGRES_DB=nextcloud
|
||||
POSTGRES_USER=nextcloud
|
26
roles/docker/files/composefiles/nextcloud.yml
Normal file
26
roles/docker/files/composefiles/nextcloud.yml
Normal 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:
|
Loading…
Reference in a new issue