Skip to content

Instantly share code, notes, and snippets.

@ashutoshpw
Created September 12, 2021 19:27
Show Gist options
  • Save ashutoshpw/922b0b26641f56d01e81c5c577197a8f to your computer and use it in GitHub Desktop.
Save ashutoshpw/922b0b26641f56d01e81c5c577197a8f to your computer and use it in GitHub Desktop.
nextcloud-docker
version: "2.1"
services:
nextcloud:
image: nextcloud
container_name: nextcloud
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Kolkata
volumes:
- nc_apps:/var/www/html/apps
- nc_data:/var/www/html/data
- ./_data/config:/var/www/html/config
ports:
- 8080:80
restart: always
environment:
PHP_MEMORY_LIMIT: 2048M
PHP_UPLOAD_LIMIT: 512M
db:
image: postgres:11
restart: always
volumes:
- nc_database:/var/lib/postgresql/data/
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: nc_db
POSTGRES_USER: nc_user
volumes:
nc_apps:
nc_data:
nc_database:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment