Created
June 5, 2022 05:36
-
-
Save manniru/6d478953d9c39ab75ea58e469ba7d1a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.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