Advertisement
Guest User

Untitled

a guest
Apr 9th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. docker run --name mysql -e MYSQL_ROOT_PASSWORD=mysqlrootpassword -d mysql:latest
  2.  
  3.  
  4. CREATE DATABASE firefly;
  5. CREATE USER 'firefly'@'%' IDENTIFIED BY 'mysqluserpassword';
  6. GRANT ALL PRIVILEGES ON firefly . * TO 'firefly'@'%';
  7. FLUSH PRIVILEGES;
  8.  
  9. docker volume create firefly_export
  10. docker volume create firefly_upload
  11.  
  12. docker run -d \
  13. --name firefly \
  14. --restart unless-stopped \
  15. --link mysql:mysql \
  16. -v firefly_iii_export:/var/www/firefly-iii/storage/export \
  17. -v firefly_iii_upload:/var/www/firefly-iii/storage/upload \
  18. -p 50000:80 \
  19. -e FF_APP_ENV=local \
  20. -e FF_APP_KEY=APPKEY \
  21. -e FF_DB_HOST=172.17.0.3 \
  22. -e FF_DB_NAME=firefly \
  23. -e FF_DB_USER=firefly \
  24. -e FF_DB_PASSWORD=mysqluserpassword \
  25. jc5x/firefly-iii:latest
  26.  
  27. docker exec -it cf0b63577283f10 php artisan migrate --seed
  28. docker exec -it cf0b63577283f10 php artisan firefly:upgrade-database
  29. docker exec -it cf0b63577283f10 php artisan firefly:verify
  30. docker exec -it cf0b63577283f10 php artisan passport:install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement