Last active
April 4, 2023 19:15
-
-
Save tkoop/0fecd7b8e45c9387b71e0316f295a82f 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
1. Create an AWS Lightsail instance at https://aws.amazon.com/lightsail/ | |
- I chose: 1 GB RAM, 1 vCPU, 40 GB SSD | |
- start it and wait for it to come up | |
- click the console/terminal icon to open a console | |
2. Run `nano docker-compose.yaml` Paste in the lines found below. Consider changing the password. | |
3. Run `sudo docker-compose up -d` | |
4. Close the terminal | |
5. Find the IP address of your sail instance and browse to it with http://your_ip_address | |
version: '2' | |
volumes: | |
nextcloud: | |
db: | |
services: | |
db: | |
image: mariadb:10.5 | |
restart: always | |
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW | |
volumes: | |
- db:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=somethingsecret | |
- MYSQL_PASSWORD=somethingsecret | |
- MYSQL_DATABASE=nextcloud | |
- MYSQL_USER=nextcloud | |
app: | |
image: nextcloud | |
restart: always | |
ports: | |
- 80:80 | |
links: | |
- db | |
volumes: | |
- nextcloud:/var/www/html | |
environment: | |
- MYSQL_PASSWORD=somethingsecret | |
- MYSQL_DATABASE=nextcloud | |
- MYSQL_USER=nextcloud | |
- MYSQL_HOST=db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment