1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-01 12:15:25 +00:00

Sync local time with container by mounting volume

This commit is contained in:
2016-01-22 03:41:31 +00:00
parent c9a425d959
commit d011c1c3b6
3 changed files with 3 additions and 4 deletions

View File

@@ -74,8 +74,7 @@ RUN echo PassengerMaxPoolSize 3 >> /etc/apache2/apache2.conf
RUN echo PassengerMinInstances 3 >> /etc/apache2/apache2.conf
RUN echo PassengerPreStart *:443 >> /etc/apache2/apache2.conf
# Set timezone to new york
RUN timedatectl set-timezone America/New_York
# By default, simply start apache.
CMD /usr/sbin/apache2ctl -D FOREGROUND

View File

@@ -9,4 +9,4 @@ docker kill $1
docker rm $1
docker build -t $1 -f rails-prod-Dockerfile .
docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /srv/docker/apache2/logs:/var/log/apache2 -p 80:80 -p 443:443 $1
docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /srv/docker/apache2/logs:/var/log/apache2 -v /etc/localtime:/etc/localtime -p 80:80 -p 443:443 $1

View File

@@ -9,4 +9,4 @@ docker kill $1
docker rm $1
docker build -t $1 -f rails-prod-Dockerfile .
docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE $1 bundle exec rake jobs:work RAILS_ENV=production
docker run --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /etc/localtime:/etc/localtime $1 bundle exec rake jobs:work RAILS_ENV=production