- Clone the Postal git repository and place the files from this gist in the root folder.
docker-compose build
docker-compose up -d mysql
docker-compose run web bin/postal initialize-config
docker run -it -v postal_config:/opt/postal/config alpine vi /opt/postal/config/postal.yml
- See the attached
postal.yml
for the correctmessage_db
,main_db
, andrabbitmq
settings and make the necessary edits. docker-compose run web bin/postal initialize
docker-compose up
App should be running at http://<your_docker_host_ip>:5000/.
Hi there, thanks for that. Very cool to get up and running fast like this. FYI, I had to do this in Dockerfile:
FROM ruby:2.3-onbuild VOLUME /opt/postal/config ENV LOG_TO_STDOUT 1 ENV AM_CONFIG_ROOT /opt/postal/config ENV POSTAL_CONFIG_ROOT /opt/postal/config RUN gem install procodile RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \ && apt-get install -y nodejs
I, [2018-11-26T15:48:46.007117 #17] INFO -- : Writing /usr/src/app/public/assets/application/application-602ea59ead8408bdd66cbed4dc0d71c02bb8df0fe63aa700ac397a69ff29c17a.js I, [2018-11-26T15:48:46.008862 #17] INFO -- : Writing /usr/src/app/public/assets/application/application-602ea59ead8408bdd66cbed4dc0d71c02bb8df0fe63aa700ac397a69ff29c17a.js.gz rake aborted! Autoprefixer doesn’t support Node v4.8.2. Update it.
I don't really understand why this changes work technically, so not sure it's the best way to solve those problems. Hope it help you. :)