Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial launch... #1

Open
serhiiKalchenko opened this issue Nov 17, 2020 · 0 comments
Open

Initial launch... #1

serhiiKalchenko opened this issue Nov 17, 2020 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@serhiiKalchenko
Copy link
Owner

serhiiKalchenko commented Nov 17, 2020

Initial launch Joomla site on localhost or on server [AWS]

you do manually this sequence of commands (but that's only for 1 time 😉)

  1. Create a joomla volume:
    • docker volume create joomla
  2. Create a db volume:
    • docker volume create db
  3. Run containers with docker-compose:
    • docker-compose up -d --build
  4. Install Joomla site in browser(3 steps only)
    • all credentials for DB you take from docker-compose.yml
  5. Now you should make backup (dump) of your database:
    • run: ./backup-db.sh
    • you'll get joomla_db.sql
  6. Shut down your containers and make backup from Joomla site
    • change projectDir to your dir in backup-site.sh
    • run: sudo ./backup-site.sh
  7. Congratulations!:sparkles:
    • You have all needed backups for running your site on a remote host!:wink::thumbsup:
    • for further launches you can use: ./run.sh

Backup & restore the site data and database

  • feel free to use the scripts: backup-site.sh, backup-db.sh, restore-db.sh on a running containers
  • the script backup-site.sh run with sudo privileges (because of "-p" option in "tar" command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant