This file aims to explain how to deploy Portainer inside a compose file with the admin password already set.
For this example, we'll use the password superpassword.
Use the following command to generate a hash for the password:
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'aws-sdk' | |
| class S3FolderUpload | |
| attr_reader :folder_path, :total_files, :s3_bucket, :include_folder | |
| attr_accessor :files | |
| # Initialize the upload class |
| input.form-submit.button-small { | |
| padding: 4px 8px; | |
| font-weight: bold; | |
| } | |
| .container-inline input.form-submit.button-small + .ajax-progress.ajax-progress-throbber .throbber { | |
| position: absolute; | |
| left: 19px; | |
| margin-top: 7px; | |
| } |
| # ---------------------------------- | |
| # Colors | |
| # ---------------------------------- | |
| NOCOLOR='\033[0m' | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| ORANGE='\033[0;33m' | |
| BLUE='\033[0;34m' | |
| PURPLE='\033[0;35m' | |
| CYAN='\033[0;36m' |
| FROM traefik:camembert | |
| ADD traefik.toml . | |
| EXPOSE 80 | |
| EXPOSE 8080 | |
| EXPOSE 443 |
| 'use strict'; | |
| const puppeteer = require('puppeteer'); | |
| (async() => { | |
| const browser = await puppeteer.launch({ | |
| headless: true, | |
| ignoreHTTPSErrors: true, | |
| timeout: 1000 |
| // https://gist.github.com/joonaspaakko/f16b47be887a2058cd0c0ac6e7ab0343 | |
| // The script doesn't check for page items inside the current master. | |
| // That means the current master could be filled with all kinds of graphics and this script considers it an empty page. | |
| var master; | |
| if (app.documents.length > 0) init(); | |
| function init() { |
| :root { | |
| --ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53); | |
| --ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19); | |
| --ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22); | |
| --ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06); | |
| --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035); | |
| --ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335); | |
| --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94); | |
| --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1); | |
| --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1); |
This file aims to explain how to deploy Portainer inside a compose file with the admin password already set.
For this example, we'll use the password superpassword.
Use the following command to generate a hash for the password:
| // create a bookmark and use this code as the URL, you can now toggle the css on/off | |
| // thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3 | |
| javascript: (function() { | |
| var elements = document.body.getElementsByTagName('*'); | |
| var items = []; | |
| for (var i = 0; i < elements.length; i++) { | |
| if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) { | |
| items.push(elements[i]); | |
| } | |
| } |