Skip to content

Commit b7c62c9

Browse files
committed
adding post about nexcloud
1 parent cf8c7ab commit b7c62c9

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: NextCloud instalation with Docker
3+
date: 2025-01-28 11:13:05 +/-TTTT
4+
categories: ["Tech", "Solutions"]
5+
tags: ["docker", "linux", "nextcloud"] # TAG names should always be lowercase
6+
description: Docker Compose code to install nexcloud on docker
7+
---
8+
9+
## Docker Compose code to install nexcloud on docker
10+
11+
```
12+
version: '3.8'
13+
14+
services:
15+
nextcloud:
16+
image: nextcloud:latest
17+
container_name: nextcloud
18+
restart: always
19+
ports:
20+
- "8080:80"
21+
volumes:
22+
- nextcloud_data:/var/www/html
23+
environment:
24+
- MYSQL_HOST=db
25+
- MYSQL_DATABASE=nextcloud
26+
- MYSQL_USER=nextclouduser
27+
- MYSQL_PASSWORD=Mehraj@#2011
28+
29+
db:
30+
image: mariadb:latest
31+
container_name: nextcloud_db
32+
restart: always
33+
environment:
34+
- MYSQL_ROOT_PASSWORD=Mehraj@#2011
35+
- MYSQL_DATABASE=nextcloud
36+
- MYSQL_USER=nextclouduser
37+
- MYSQL_PASSWORD=Mehraj@#2011
38+
volumes:
39+
- db_data:/var/lib/mysql
40+
41+
volumes:
42+
nextcloud_data:
43+
db_data:
44+
```

0 commit comments

Comments
 (0)