Skip to content

Instantly share code, notes, and snippets.

@manniru
Created June 5, 2022 05:36
Show Gist options
  • Select an option

  • Save manniru/6d478953d9c39ab75ea58e469ba7d1a2 to your computer and use it in GitHub Desktop.

Select an option

Save manniru/6d478953d9c39ab75ea58e469ba7d1a2 to your computer and use it in GitHub Desktop.
version: '3.2'
services:
db:
image: postgres
restart: always
volumes:
- db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
app:
image: nextcloud
restart: always
ports:
- 8080:80
volumes:
- nextcloud:/var/www/html
environment:
- POSTGRES_HOST=db
- POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud
- POSTGRES_PASSWORD=nextcloud
depends_on:
- db
cron:
image: nextcloud
restart: always
volumes:
- nextcloud:/var/www/html
entrypoint: /cron.sh
depends_on:
- db
volumes:
db:
nextcloud:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment