Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,15 @@ services:
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
volumes:
- db_data:/var/lib/MySQL
- db_data:/var/lib/mysql
networks:
- internal

Redis:
image: Redis:7-alpine
image: redis:7-alpine
restart: unless-stopped
networks:
- internal

app:
image: nextcloud:apache
Expand All @@ -179,11 +183,14 @@ services:
NEXTCLOUD_TRUSTED_DOMAINS: ${NC_DOMAIN}
volumes:
- nextcloud_html:/var/www/html
- config:/var/www/html/config
- nextcloud_data:/var/www/html/data
networks:
- internal
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.nextcloud.rule=Host(`${NC_DOMAIN}`)
- traefik.http.routers.nextcloud.entrypoints=websecure
- traefik.http.routers.nextcloud.tls.certresolver=letsencrypt
Expand All @@ -192,8 +199,10 @@ volumes:
db_data:
nextcloud_html:
nextcloud_data:
config:

networks:
internal:
proxy:
external: true
```
Expand Down Expand Up @@ -229,4 +238,4 @@ For advanced or multi-service use, this guide is recommended.

[Secure an OVHcloud VPS](/pages/bare_metal_cloud/virtual_private_servers/secure_your_vps)

Join our [community of users](/links/community).
Join our [community of users](/links/community).
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,14 @@ services:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
volumes:
- db_data:/var/lib/mysql
networks:
- internal

redis:
image: redis:7-alpine
restart: unless-stopped
networks:
- internal

app:
image: nextcloud:apache
Expand All @@ -179,11 +183,14 @@ services:
NEXTCLOUD_TRUSTED_DOMAINS: ${NC_DOMAIN}
volumes:
- nextcloud_html:/var/www/html
- config:/var/www/html/config
- nextcloud_data:/var/www/html/data
networks:
- internal
- proxy
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.nextcloud.rule=Host(`${NC_DOMAIN}`)
- traefik.http.routers.nextcloud.entrypoints=websecure
- traefik.http.routers.nextcloud.tls.certresolver=letsencrypt
Expand All @@ -192,8 +199,10 @@ volumes:
db_data:
nextcloud_html:
nextcloud_data:
config:

networks:
internal:
proxy:
external: true
```
Expand Down