version: '2'
volumes:
vol_wiki:
vol_nextcloud:
vol_nextcloud_db:
services:
html:
container_name: docker_html
build: html
image: html
restart: always
wiki:
container_name: docker_wiki
build: dokuwiki
image: wiki
- vol_wiki:/var/dokuwiki-storage
nextcloud-db:
container_name: nextcloud_db
image: mariadb
- vol_nextcloud_db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nextcloud
- MYSQL_PASSWORD=nextcloud
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
nextcloud:
container_name: nextcloud
image: nextcloud:fpm
links:
- nextcloud-db
- vol_nextcloud:/var/www/html
nextcloud-web:
container_name: docker_cloud
image: nginx
- nextcloud
- ./nextcloud/nginx.conf:/etc/nginx/nginx.conf:ro
volumes_from:
proxy:
container_name: proxy
build: nginx-proxy
image: proxy
ports:
- 80:80
- html
- wiki
- nextcloud-web