Last active
May 6, 2019 20:22
-
-
Save Thrilleratplay/ed0c74024cfc6ff52d2f727f49ca6925 to your computer and use it in GitHub Desktop.
Setting up Wallabag with Docker
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
#!/bin/bash | |
# NOTE: DO NOT BLINDLY RUN THIS!!!!! NOT TESTED!!!!!! | |
MY_PASSWORD="my-secret-pw" | |
# MariaDB | |
docker pull mariadb | |
docker run --restart=always \ | |
--name mariadb \ | |
-e MYSQL_ROOT_PASSWORD=$MY_PASSWORD \ | |
-d mariadb:lastest | |
# Redis | |
docker pull redis | |
docker run --restart=always \ | |
--name redis \ | |
-d redis | |
#Wallabag | |
docker pull wallabag/wallabag | |
docker run --restart=always | |
--name wallabag \ | |
--link redis:redis \ | |
--link mariadb:mariadb \ | |
-e "MYSQL_ROOT_PASSWORD=$MY_PASSWORD" \ | |
-e "SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql" \ | |
-e "SYMFONY__ENV__DATABASE_HOST=mariadb" \ | |
-e "SYMFONY__ENV__DATABASE_PORT=3306" \ | |
-e "SYMFONY__ENV__DATABASE_NAME=wallabag" \ | |
-e "SYMFONY__ENV__DATABASE_USER=wallabag" \ | |
-e "SYMFONY__ENV__DATABASE_PASSWORD=wallapass" \ | |
wallabag/wallabag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment