Skip to content

Instantly share code, notes, and snippets.

@tq-bit
Created September 3, 2021 14:09
Show Gist options
  • Save tq-bit/cf77dc12ceb7e7a3836a6f8c6afd86a8 to your computer and use it in GitHub Desktop.
Save tq-bit/cf77dc12ceb7e7a3836a6f8c6afd86a8 to your computer and use it in GitHub Desktop.
Docker compose file to setup a basic nextcloud instance that runs on postgres.
version: "3.8"
volumes:
nc_data:
nc_conf:
services:
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: supersecret123
POSTGRES_USER: root
POSTGRES_DB: development
volumes:
- nc_data:/var/lib/postgresql/data
ports:
- 5432:5432
nextcloud-app:
image: nextcloud
restart: always
ports:
- 8080:80
links:
- db
volumes:
- nc_conf:/var/www/html
environment:
POSTGRES_HOST: db
POSTGRES_PASSWORD: supersecret123
PASSWORD_USER: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment