1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-30 19:22:21 +00:00

Set hostname for production docker containers

This commit is contained in:
2016-01-28 16:37:04 +00:00
parent 1b9151a888
commit 3ae5727f09
2 changed files with 2 additions and 2 deletions

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 -v /etc/localtime:/etc/localtime -p 80:80 -p 443:443 $1
docker run -h $HOSTNAME --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 -v /etc/localtime:/etc/localtime $1 bundle exec rake jobs:work RAILS_ENV=production
docker run -h $HOSTNAME --name $1 -d --restart=always --env-file $WRESTLINGDEV_ENV_FILE -v /etc/localtime:/etc/localtime $1 bundle exec rake jobs:work RAILS_ENV=production