Skip to content

Instantly share code, notes, and snippets.

@ngophuong
Forked from raspberrypisig/db.env
Created September 27, 2021 15:38
Show Gist options
  • Save ngophuong/061b5df4ef53f8ce282d6053b50a7070 to your computer and use it in GitHub Desktop.
Save ngophuong/061b5df4ef53f8ce282d6053b50a7070 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