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

38 lines
695 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
networks:
- nextcloud
2018-06-23 14:41:33 +00:00
app:
image: nextcloud
volumes:
- nextcloud:/var/www/html
restart: always
environment:
- POSTGRES_HOST=db
2018-06-23 17:44:27 +00:00
- POSTGRES_PASSWORD=hest
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- VIRTUAL_HOST=nextcloud.local
depends_on:
2018-06-23 14:41:33 +00:00
- db
ports:
- "80"
networks:
- nextcloud
- external_services
2018-06-23 14:41:33 +00:00
volumes:
nextcloud:
db:
networks:
external_services:
external: true
nextcloud: