Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- nextcloud_db:
- image: mariadb:10.3.8
- command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
- restart: always
- volumes:
- - nextcloud_db:/var/lib/mysql
- environment:
- - MYSQL_ROOT_PASSWORD=****
- - MYSQL_PASSWORD=****
- - MYSQL_DATABASE=****
- - MYSQL_USER=****
- nextcloud_app:
- image: nextcloud:28.0.8-fpm-alpine
- restart: always
- volumes:
- - nextcloud_app:/var/www/html
- environment:
- - MYSQL_PASSWORD=****
- - MYSQL_DATABASE=****
- - MYSQL_USER=****
- - MYSQL_HOST=****
- - NEXTCLOUD_ADMIN_USER=****
- - NEXTCLOUD_ADMIN_PASSWORD=****
- depends_on:
- - nextcloud_db
- nextcloud_web:
- image: nginx:1.15.2-alpine
- restart: always
- volumes:
- - ./nginx_nextcloud.conf:/etc/nginx/nginx.conf:ro
- - nextcloud_app:/var/www/html:ro
- depends_on:
- - nextcloud_app
- web:
- image: nginx:1.15.2-alpine
- restart: always
- volumes:
- - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- - ./nginx/htpasswd:/etc/nginx/htpasswd:ro
- - ./html:/var/www/html:ro
- - letsencrypt:/letsencrypt:ro
- depends_on:
- - nextcloud_web
- ports:
- - 80:80
- - 443:443
- certbot:
- build: ./certbot
- restart: always
- volumes:
- - letsencrypt:/etc/letsencrypt
- - ./html:/html
- volumes:
- letsencrypt:
- driver_opts:
- type: none
- device: /mnt/disk/mycloud/letsencrypt
- o: bind
- nextcloud_db:
- driver_opts:
- type: none
- device: /mnt/disk/mycloud/nextcloud_db
- o: bind
- nextcloud_app:
- driver_opts:
- type: none
- device: /mnt/disk/mycloud/nextcloud_app
- o: bind
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement