Public | Automated Build

Last pushed: 10 months ago
Short Description
build a diaspora docker
Full Description


set up dns for the domain you want to use

generate letsencrypt certs

docker run -it --rm -v /etc/letsencrypt:/etc/letsencrypt -p 80:80 -p 443:443 xataz/letsencrypt certonly --standalone --agree-tos -m -d POSTGRES_PASSWORD=mysecretepass docker-compose up # use -d to background

create database if it does not exist (warning : it will wipe existing)

docker-compose exec sh RAILS_ENV=production bin/rake db:create db:schema:load

renew cert

add to cron (needs some hackery to use the nginx webroot
docker run -it --rm -v /etc/letsencrypt:/etc/letsencrypt -p 80:80 -p 443:443 xataz/letsencrypt renewal

Docker Pull Command
Source Repository