Created
April 18, 2019 01:58
-
-
Save andreysfc/b92214a4f9a83ce0c0d444b0a117668e to your computer and use it in GitHub Desktop.
Script docker-compose integrasi Nextcloud dengan docker
This file contains 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: '2' | |
volumes: | |
nextcloud: | |
db: | |
services: | |
db: | |
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW | |
image: mariadb | |
restart: always | |
volumes: | |
- db:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD= | |
- MYSQL_PASSWORD= | |
- MYSQL_DATABASE= | |
- MYSQL_USER= | |
app: | |
image: nextcloud:fpm-alpine | |
links: | |
- db | |
volumes: | |
- /data/nextcloud:/var/www/html | |
restart: always | |
web: | |
image: nginx | |
ports: | |
- 8080:80 | |
links: | |
- app | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf:ro | |
volumes_from: | |
- app | |
restart: always | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment