-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from lucernae/master
Upgrade configuration files
- Loading branch information
Showing
11 changed files
with
91 additions
and
23 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## Specific docker-compose configuration files for Linux | ||
db: | ||
volumes: | ||
# Enable this in linux because we want to persist the db | ||
- .db:/var/lib/mysql |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Specific docker-compose configuration files for OSX | ||
dbstorage: | ||
image: busybox | ||
hostname: db.storage | ||
volumes: | ||
- /var/lib/mysql | ||
|
||
db: | ||
volumes: | ||
- ./backups:/backups | ||
- ./sftp_backup/target/db:/target | ||
volumes_from: | ||
# Special treatment for OSX because it doesn't work to mount db | ||
# folder directly | ||
# See https://github.com/tutumcloud/tutum-docker-mariadb/issues/5 | ||
- dbstorage |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM tutum/mysql:5.5 | ||
MAINTAINER Rizky Maulana Nugraha <[email protected]> | ||
|
||
ADD backups-cron /etc/cron.d/backups-cron |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# For testing - run every minute | ||
*/1 * * * * root /backups/db-backup.sh 2>&1 | ||
|
||
# Run the backups at 10pm each night | ||
# This is because SFTP backup is run at 11pm each night | ||
# This is to make sure pg backup is finished before then | ||
#0 22 * * * root /backups/db-backup.sh 2>&1 | ||
|
||
# We need a blank line here for it to be a valid cron file |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# copy this template as wordpress_credential.env for production mode credential | ||
MYSQL_PASS=wheatsworth499 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# copy this template as wordpress_credential.env for production mode credential | ||
DB_PASS=wheatsworth499 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# copy this template as wordpress_credential.env for production mode credential | ||
DB_PASS=wheatsworth499 |