Skip to content

Instantly share code, notes, and snippets.

@dougcooper
Last active July 14, 2019 21:29
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 dougcooper/3abc10fe5a46d4ee296ff86d24d46287 to your computer and use it in GitHub Desktop.
Save dougcooper/3abc10fe5a46d4ee296ff86d24d46287 to your computer and use it in GitHub Desktop.
A docker-compose file for NextCloud
version: '2'
volumes:
nextcloud:
db:
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
ports:
- 8080:80
links:
- db
volumes:
- nextcloud:/var/www/html
restart: always
environment:
- NEXTCLOUD_ADMIN_PASSWORD=password
- NEXTCLOUD_ADMIN_USER=nextcloud
adminer:
image: adminer
restart: always
ports:
- 8081:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment