2017-10-02 16:17:48 +02:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=nextcloud
|
|
|
|
- POSTGRES_USER=nextcloud
|
|
|
|
- POSTGRES_PASSWORD=nextcloud
|
|
|
|
|
|
|
|
app:
|
|
|
|
image: nextcloud
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html
|
|
|
|
environment:
|
|
|
|
- POSTGRES_HOST=db
|
|
|
|
- POSTGRES_DB=nextcloud
|
|
|
|
- POSTGRES_USER=nextcloud
|
|
|
|
- POSTGRES_PASSWORD=nextcloud
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
cron:
|
|
|
|
image: nextcloud
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html
|
2018-02-06 20:40:49 +01:00
|
|
|
entrypoint: /cron.sh
|
2017-10-02 16:17:48 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db:
|
|
|
|
nextcloud:
|