Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- db:
- image: mariadb
- restart: always
- volumes:
- - /home/nextcloud/nc/db:/var/lib/mysql
- environment:
- - MYSQL_ROOT_PASSWORD=your_mysql_root_password!
- - MYSQL_PASSWORD=your_mysql_nextcloud_password
- - MYSQL_DATABASE=nextcloud
- - MYSQL_USER=nextcloud
- web:
- image: nginx
- container_name: nextcloud_web
- volumes:
- - ./nginx.conf:/etc/nginx/nginx.conf:ro
- links:
- - app
- volumes_from:
- - app
- environment:
- - VIRTUAL_HOST=cloud.domain.tld
- - VIRTUAL_NETWORK=nginx-proxy
- - VIRTUAL_PORT=80
- - LETSENCRYPT_HOST=cloud.domain.tld
- - LETSENCRYPT_EMAIL=webmaster@domain.tld
- expose:
- - 80
- - 443
- restart: always
- app:
- image: nextcloud:fpm
- container_name: nextcloud_fpm
- links:
- - db
- volumes:
- - /home/nextcloud/nc/nextcloud:/var/www/html
- restart: always
- networks:
- default:
- external:
- name: nginx-proxy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement