for all homeboys
docker build -t homie:1.1 -t homie .
docker-compose build
docker run --name homie \
-e DATABASE_HOST=localhost \
-e DATABASE_PORT=5432 \
-e DATABASE_NAME=homie_production \
-e DATABASE_USERNAME=postgres \
-e DATABASE_PASSWORD=postgres \
-e RAILS_LOG_TO_STDOUT=true \
-e RAILS_SERVE_STATIC_FILES=true \
-p 80:3000 homie:latest
docker-compose run
bin/rake internet_speed:run
docker-compose run web rake internet_speed:run
bin/rake internet_speed:import["~/Downloads/speedtest.log"]
docker-compose run web rake internet_speed:import["~/Downloads/speedtest.log"]
git clone [email protected]:stereosupersonic/homie.git
create a new file .env
cd homie
cp config/env.sample .env
PORT=3000 # depend on the other containers0
DATABASE_HOST="192.168.1.69"
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=postgres_pw
DATABASE_NAME=homie_production
docker-compose -f traefik.yml up -d
docker exec -t postgresdb pg_dump -c -U postgres homie_production > dump_homie_`date +%d-%m-%Y"_"%H_%M_%S`.sql
cat dump_09-04-2020_09_34_28.sql | docker exec -i homie_database_1 psql -U postgres homie_development