Skip to content

Instantly share code, notes, and snippets.

@Thrilleratplay
Last active May 6, 2019 20:22
Show Gist options
  • Save Thrilleratplay/ed0c74024cfc6ff52d2f727f49ca6925 to your computer and use it in GitHub Desktop.
Save Thrilleratplay/ed0c74024cfc6ff52d2f727f49ca6925 to your computer and use it in GitHub Desktop.
Setting up Wallabag with Docker
#!/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