Created
January 22, 2018 22:54
-
-
Save mikeymop/266d811827dcb132af9c8a1537fec394 to your computer and use it in GitHub Desktop.
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
version: '3' | |
services: | |
db: | |
image: mariadb | |
# image: mysql | |
restart: always | |
volumes: | |
- db:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=['this should match the password set in db.env'] | |
env_file: | |
- db.env | |
app: | |
image: nextcloud:fpm | |
restart: always | |
volumes: | |
- nextcloud:/var/www/html | |
environment: | |
- MYSQL_HOST=db | |
env_file: | |
- db.env | |
depends_on: | |
- db | |
web: | |
build: ./web | |
restart: always | |
volumes: | |
- nextcloud:/var/www/html:ro | |
environment: | |
- VIRTUAL_HOST=['URL to your nextcloud instance'] | |
- LETSENCRYPT_HOST=['BASE URL for your VPS'] | |
- LETSENCRYPT_EMAIL=['email used to register ssl cert'] | |
depends_on: | |
- app | |
networks: | |
- proxy-tier | |
- default | |
proxy: | |
build: ./proxy | |
restart: always | |
ports: | |
- 80:80 | |
- 443:443 | |
labels: | |
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" | |
volumes: | |
- certs:/etc/nginx/certs:ro | |
- conf.d:/etc/nginx/conf.d | |
- vhost.d:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
networks: | |
- proxy-tier | |
letsencrypt-companion: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
restart: always | |
volumes: | |
- certs:/etc/nginx/certs | |
- conf.d:/etc/nginx/conf.d | |
- vhost.d:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
networks: | |
- proxy-tier | |
depends_on: | |
- proxy | |
volumes: | |
db: | |
nextcloud: | |
certs: | |
conf.d: | |
vhost.d: | |
html: | |
networks: | |
proxy-tier: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment