ansible/roles/docker/files/composefiles/nextcloud.yml

27 lines
456 B
YAML
Raw Normal View History

2018-06-23 14:41:33 +00:00
version: '3'
services:
db:
image: postgres
restart: always
volumes:
- db:/var/lib/postgresql/data
2018-06-23 15:58:58 +00:00
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
2018-06-23 14:41:33 +00:00
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: