Created
January 14, 2019 18:48
-
-
Save JoshStark/ac829219e548ea5d4a7126f1e952ab15 to your computer and use it in GitHub Desktop.
Compose configuration for NC/Maria/Let's Encrypt
This file contains 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
version: "2" | |
services: | |
letsencrypt: | |
image: linuxserver/letsencrypt | |
container_name: letsencrypt | |
restart: always | |
cap_add: | |
- NET_ADMIN | |
depends_on: | |
- nextcloud | |
environment: | |
PUID: "1000" | |
PGID: "1000" | |
TZ: "Europe/London" | |
URL: "<YOUR_DOMAIN>" | |
SUBDOMAINS: "nextcloud" | |
ONLY_SUBDOMAINS: "true" | |
VALIDATION: "dns" | |
DNSPLUGIN: "cloudflare" | |
DHLEVEL: 4096 | |
EMAIL: "<EMAIL_ADDRESS>" | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- "/opt/appdata/letsencrypt:/config" | |
mariadb: | |
image: linuxserver/mariadb | |
container_name: mariadb | |
restart: always | |
environment: | |
PUID: "1000" | |
PGID: "1000" | |
TZ: "Europe/London" | |
MYSQL_ROOT_PASSWORD: "<YOUR_SUPER_SECRET_ROOT_PASSWORD>" | |
volumes: | |
- "/opt/appdata/mariadb:/config" | |
nextcloud: | |
image: linuxserver/nextcloud | |
container_name: nextcloud | |
depends_on: | |
- mariadb | |
restart: always | |
environment: | |
PUID: "1002" | |
PGID: "1002" | |
TZ: "Europe/London" | |
ports: | |
- "444:443" | |
volumes: | |
- "/opt/appdata/nextcloud:/config" | |
- "/storage/userdata/nextcloud:/data" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment