Last active
August 1, 2022 10:02
-
-
Save mxyq/4d06e11b50bb95a61d5fd6479a7d38ee to your computer and use it in GitHub Desktop.
[Docker startup scripts] #Docker
This file contains hidden or 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
docker run --rm -v $PWD:/data -it archivebox/archivebox init --setup | |
docker run -it \ | |
--name archive_box \ | |
-p 48000:8000 \ | |
-v /data/ArchiveBox:/data \ | |
--restart always \ | |
-e HTTP_PROXY=http://192.168.1.10:10811 \ | |
-e HTTPS_PROXY=http://192.168.1.10:10811 \ | |
-e TIMEOUT=120 \ | |
-e SAVE_READABILITY=False \ | |
-e SAVE_MERCURY=False \ | |
-e SAVE_PDF=False \ | |
-e SAVE_SCREENSHOT=False \ | |
-e SAVE_DOM=False \ | |
-d archivebox/archivebox:latest server 0.0.0.0:8000 |
This file contains hidden or 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
#!/bin/bash | |
docker run -it \ | |
--name mysql5.7 \ | |
--restart always \ | |
-e MYSQL_ROOT_PASSWORD=xxxxx \ | |
-e MYSQL_DATABASE=db_xxxxx \ | |
-e MYSQL_USER=db_xxxx \ | |
-e MYSQL_PASSWORD=xxxxx \ | |
-p 3306:3306 \ | |
-d mysql:5.7 --character-set-server=utf8 --collation-server=utf8_general_ci |
This file contains hidden or 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
#!/bin/bash | |
docker run -it \ | |
--name redis_6 \ | |
-p 6379:6379 \ | |
--restart always \ | |
-d redis:6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment