Created
September 27, 2017 02:06
-
-
Save ssplatt/2efeec5e78e420a71ac7221bc9d6b44a to your computer and use it in GitHub Desktop.
docker - owncloud with letsencrypt, mariadb, and redis
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
owncloud: | |
image: owncloud | |
links: | |
- mariadb:mysql | |
- redis:redis | |
ports: | |
- 8081:80 | |
volumes: | |
- /opt/docker-persist/owncloud/apps:/var/www/html/apps | |
- /opt/docker-persist/owncloud/config:/var/www/html/config | |
- /opt/docker-persist/owncloud/data:/var/www/html/data | |
restart: always | |
redis: | |
image: redis:alpine | |
command: redis-server --appendonly yes | |
volumes: | |
- /opt/docker-persist/redis/data:/data | |
restart: always | |
letsencrypt: | |
image: linuxserver/letsencrypt | |
volumes: | |
- /opt/docker-persist/letsencrypt:/config | |
ports: | |
- 8443:443 | |
- 8080:80 | |
environment: | |
- PGID=1000 | |
- PUID=1000 | |
- [email protected] | |
- URL=example.com | |
- SUBDOMAINS=www,owncloud,cloud | |
- TZ=America/New_York | |
restart: always | |
mariadb: | |
image: mariadb | |
volumes: | |
- /opt/docker-persist/mariadb/conf.d:/etc/mysql/conf.d | |
- /opt/docker-persist/mariadb/data:/var/lib/mysql | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment