-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (38 loc) · 988 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (38 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
services:
db:
image: mariadb:lts
environment:
- MYSQL_ROOT_PASSWORD=your_root_password
- MYSQL_PASSWORD=your_password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud_user
volumes:
- db_data:/var/lib/mysql
redis:
image: redis:alpine
app:
image: nextcloud
# Optionally comment out ports if you only access Nextcloud via Caddy reverse proxy:
ports:
- "12000:80"
environment:
- MYSQL_PASSWORD=your_password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud_user
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS=localhost 100.105.160.16 rohans-macbook-air.wolf-humboldt.ts.net
volumes:
- nextcloud_data:/var/www/html
caddy:
image: caddy:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./caddy_data:/data
- ./caddy_config:/config
- ./Caddyfile:/etc/caddy/Caddyfile:ro
restart: unless-stopped
volumes:
db_data:
nextcloud_data: