Skip to content

Instantly share code, notes, and snippets.

@talfco
Last active May 25, 2021 10:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talfco/06786c494997c13c8bed0a25e1930f48 to your computer and use it in GitHub Desktop.
Save talfco/06786c494997c13c8bed0a25e1930f48 to your computer and use it in GitHub Desktop.
version: '2'
services:
db:
image: mariadb
restart: always
volumes:
- c:/Users/talfc/DockerVolumes/nextcloud/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=gugus
env_file:
- db.env
networks:
- nextcloudnet
command:
'mysqld --innodb-flush-method=littlesync --innodb-use-native-aio=OFF --log_bin=ON'
backup-mysql:
image: dsteinkopf/backup-all-mysql:latest
restart: always
environment:
- BACKUP_INTERVAL=86400
- BACKUP_FIRSTDELAY=4000
- 'MYSQL_CONNECTION_PARAMS=--user=root --host=db --password=gugus'
links:
- db
volumes:
- c:/Users/talfc/DockerVolumes/nextcloud/mysql-backup:/var/dbdumps
networks:
- nextcloudnet
nextcloud:
image: nextcloud:apache
restart: always
ports:
- 8094:80
links:
- db
volumes:
- c:/Users/talfc/DockerVolumes/nextcloud/var_www_html:/var/www/html
- c:/Users/talfc/DockerVolumes/nextcloud/data:/var/www/html/data
#- /etc/localtime:/etc/localtime:ro
#- /etc/timezone:/etc/timezone:ro
environment:
- MYSQL_HOST=db
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=gugus
env_file:
- db.env
networks:
- nextcloudnet
networks:
nextcloudnet:
# empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment