Skip to content

Instantly share code, notes, and snippets.

@raspberrypisig
Last active February 20, 2022 17:55
Show Gist options
  • Save raspberrypisig/6771825f2a1a7390358546b312e971ff to your computer and use it in GitHub Desktop.
Save raspberrypisig/6771825f2a1a7390358546b312e971ff to your computer and use it in GitHub Desktop.
nextcloud docker raspberry pi
POSTGRES_PASSWORD=password
POSTGRES_DB=nextcloud
POSTGRES_USER=nextcloud
version: '3'
services:
db:
image: postgres
restart: always
volumes:
- db:/var/lib/postgresql/data
env_file:
- db.env
app:
image: nextcloud:apache
restart: always
ports:
- 8080:80
volumes:
- nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
env_file:
- db.env
depends_on:
- db
volumes:
db:
nextcloud:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment