28 lines
698 B
YAML
28 lines
698 B
YAML
services:
|
|
nextcloud:
|
|
image: nextcloud
|
|
ports:
|
|
- "8008:80"
|
|
volumes:
|
|
- /srv/nextcloud/:/var/www/html
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_HOST=nextcloud_db_1 # service name for postgres as assigned by Docker
|
|
- POSTGRES_DB=nextcloud_db
|
|
- POSTGRES_USER=postgres # will access postgres over 5432
|
|
- POSTGRES_PASSWORD=ncdbpwd
|
|
- PHP_MEMORY_LIMIT=1024M
|
|
- PHP_UPLOAD_LIMIT=1024M
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: postgres:13
|
|
restart: always
|
|
volumes:
|
|
- /srv/postgres-data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=nextcloud_db
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=ncdbpwd
|