Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- volumes:
- nextcloud:
- db:
- services:
- db:
- image: mariadb
- restart: always
- command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
- volumes:
- - db:/var/lib/mysql
- environment:
- - MYSQL_ROOT_PASSWORD=passwd
- - MYSQL_PASSWORD=passwd
- - MYSQL_DATABASE=nextcloud
- - MYSQL_USER=nextcloud
- app:
- image: nextcloud:fpm
- restart: always
- links:
- - db
- volumes:
- - nextcloud:/var/www/html
- environment:
- - MYSQL_PASSWORD=passwd
- - MYSQL_DATABASE=nextcloud
- - MYSQL_USER=nextcloud
- - MYSQL_HOST=db
- web:
- image: nginxproxy/nginx-proxy
- restart: always
- ports:
- - 80:80
- - 443:443
- links:
- - app
- volumes:
- - ./nginx.conf:/etc/nginx/nginx.conf:ro
- - certs:/etc/nginx/certs
- - vhost:/etc/nginx/vhost.d
- - html:/usr/share/nginx/html
- - /var/run/docker.sock:/tmp/docker.sock:ro
- volumes_from:
- - app
- nginx-proxy-acme:
- image: nginxproxy/acme-companion
- restart: always
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock:ro
- - acme:/etc/acme.sh
- volumes_from:
- - web
- environment:
- - "DEFAULT_EMAIL=email@domain.pl"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement