Skip to content

Instantly share code, notes, and snippets.

@tq-bit
Created September 3, 2021 14:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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