Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.