Created
September 3, 2021 14:09
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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