Skip to content

Instantly share code, notes, and snippets.

@andreysfc
Created April 18, 2019 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreysfc/b92214a4f9a83ce0c0d444b0a117668e to your computer and use it in GitHub Desktop.
Save andreysfc/b92214a4f9a83ce0c0d444b0a117668e to your computer and use it in GitHub Desktop.
Script docker-compose integrasi Nextcloud dengan docker
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