Created
December 25, 2022 12:58
-
-
Save Rmlyy/1277c734de6930977f72982af690699b to your computer and use it in GitHub Desktop.
Nextcloud and MariaDB Docker Compose using linuxserver.io images
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: "2.1" | |
services: | |
nextcloud: | |
image: lscr.io/linuxserver/nextcloud:latest | |
container_name: nextcloud | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Europe/Bucharest | |
volumes: | |
- /path/to/appdata:/config | |
- /path/to/data:/data | |
ports: | |
- 4543:443 | |
networks: | |
- nextcloud | |
depends_on: | |
- mariadb | |
restart: unless-stopped | |
mariadb: | |
image: lscr.io/linuxserver/mariadb:latest | |
container_name: nextcloud-db | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- TZ=Europe/Bucharest | |
- MYSQL_ROOT_PASSWORD=password | |
- MYSQL_DATABASE=nextcloud_db | |
- MYSQL_USER=nextcloud | |
- MYSQL_PASSWORD=password | |
volumes: | |
- /path/to/data:/config | |
networks: | |
- nextcloud | |
restart: unless-stopped | |
networks: | |
nextcloud: | |
driver: bridge | |
name: nextcloud |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment