Created
May 29, 2022 16:43
-
-
Save linuskmr/ba59c463d97ac9892baa494ab9b1b9d9 to your computer and use it in GitHub Desktop.
Nextcloud Docker-Compose
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
# https://www.ionos.com/digitalguide/server/configuration/nextcloud-installation-with-docker/ | |
version: '3' | |
services: | |
db: | |
image: mariadb | |
container_name: nextcloud-mariadb | |
networks: | |
- nextcloud_network | |
volumes: | |
- db:/var/lib/mysql | |
- /etc/localtime:/etc/localtime:ro | |
environment: | |
- MYSQL_ROOT_PASSWORD | |
- MYSQL_PASSWORD | |
- MYSQL_DATABASE | |
- MYSQL_USER | |
restart: unless-stopped | |
app: | |
image: nextcloud:latest | |
container_name: nextcloud-app | |
networks: | |
- nextcloud_network | |
depends_on: | |
- db | |
volumes: | |
- nextcloud:/var/www/html | |
- ./app/config:/var/www/html/config | |
- ./app/custom_apps:/var/www/html/custom_apps | |
- ./app/data:/var/www/html/data | |
- ./app/themes:/var/www/html/themes | |
- /etc/localtime:/etc/localtime:ro | |
ports: | |
- "8080:80" | |
environment: | |
- VIRTUAL_HOST | |
- LETSENCRYPT_HOST | |
- LETSENCRYPT_EMAIL | |
restart: unless-stopped | |
volumes: | |
nextcloud: | |
db: | |
networks: | |
nextcloud_network: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment