debian.ansible.nextcloud.se.../README.md

42 lines
1.8 KiB
Markdown
Raw Normal View History

2023-08-21 12:21:59 +02:00
# Ansible Playbook for running/installing Nextcloud via Docker
2023-08-21 13:10:55 +02:00
# Disclaimer
2023-08-21 12:27:13 +02:00
Use at your own risk.
2023-08-21 13:10:55 +02:00
Please look first at the playbooks downloaded and run by the nextcloud-install.sh to understand whats going on and then decide if it is fine for you to run on your system.
2023-08-21 12:27:13 +02:00
You also should test this on an non-productive Test-System to fit your needs.
2023-08-21 12:21:59 +02:00
2023-08-21 13:10:55 +02:00
# Prerequisites
This is needed for Downloading the Software, access to the Server from the Internet and the automatized creation of SSL-Certificates via letsencrypt.
- You need up-to-date Debian System preinstalled. Best with SSH-Connection. Maybe its working on debian-based Systems like Ubuntu too.
- Your System should have a working Internet-Access
- Your Machines hostname and subdomains should be accessible from the internet Port 80/443.
2023-08-21 13:17:28 +02:00
Depending on your local setup you have to define needed IPv4 (Portforwarding) or IPv6 settings on your router and maybe you need a service like dynDNS for example from (deSEC - https://desec.io/) for your dynamic IP.
2023-08-21 13:15:49 +02:00
You can check this for example with the following command:
2023-08-21 13:10:55 +02:00
```
host nextcloud.$(hostname)
```
Change the hostname with the following command for example with dedyn/deSEC to myhost.dedyn.io:
```
2023-08-21 14:30:43 +02:00
su -c "hostnamectl hostname myhost.dedyn.io"
2023-08-21 13:10:55 +02:00
```
# Quick-Install
2023-08-21 12:21:59 +02:00
Simply download an run nextcloud-install.sh and run it on you Debian(based) System:
2023-08-21 12:27:13 +02:00
2023-08-21 12:21:59 +02:00
1. Download
```
wget https://gitea.ds9.dedyn.io/olli/debian.ansible.nextcloud.server/raw/branch/main/nextcloud-install.sh
```
2023-08-21 12:27:13 +02:00
2. Run the Script
This runs some other Playbooks needed by this playbook.
2023-08-21 12:21:59 +02:00
```
bash nextcloud-install.sh
2023-08-21 13:10:55 +02:00
```
2023-08-21 13:15:49 +02:00
# After the Installation
- Your Admin-User is "ncadmin".
2023-08-21 13:17:28 +02:00
- Password can be found with the command: ``` sudo cat /home/docker/nextcloud.$(hostname)/env ```
- Login with your Webbroser as ncadmin https://nextcloud.$(hostname) and first change the password.