Migrating to docker container and changing url

Hi Everyone,

I've got gitlab installed, and so far, it seems to be running great. With one exception, my container redirects top level requests from the new domain... to the old domain. When I say top level requests, I mean requests directly to the external_url as defined in gitlab.rb are automatically being redirected to the old installation.

More explicitly: when I go to http://g.new.ca it redirects me to http://g.old.ca. However, when I got to http://g.new.ca/dashboard or http://g.new.ca/users/sign_on it keeps me on http://g.new.ca/...

What can I do to fix this annoying situation!?

Below I've included everything that seems to be pertinent. Please let me know if there's any other information you require for a diagnosis and I will provide it immediately.

Here's my docker-compose.yml:

gitlab:
  image: gitlab/gitlab-ce:8.6.0-ce.0
  restart: always
  container_name: gitlab
  volumes:
    - /home/admin/gitlab/config:/etc/gitlab
    - /home/admin/gitlab/logs:/var/log/gitlab
    - /home/admin/gitlab/data:/var/opt/gitlab
    - /home/admin/gitlab/logs/reconfigure:/var/log/gitlab/reconfigure
  environment:
    - VIRTUAL_HOST=g.new.ca
    - GITLAB_OMNIBUS_CONFIG="external_url 'http://g.new.ca'"

I use this to start the container:

docker-compose up -d

Then I run this shell script/series of commands to deal with copying over my backup, restoring it, and setting appropriate permissions:

# copy tar backup file to new host
scp user@g.old.com:/home/user/etc-gitlab-1458764872.tar /home/user/gitlab
# copy tar backup file to container
docker cp /home/user/gitlab/1458719100_gitlab_backup.tar gitlab:/var/opt/gitlab/backups
# set permissions because they're weird
docker exec gitlab chmod -R 775 /var/opt/gitlab/backups

# as per http://doc.gitlab.com/ce/raketasks/backup_restore.html#omnibus-installations
docker exec gitlab gitlab-ctl stop
docker exec gitlab-ctl stop unicorn
docker exec gitlab-ctl stop sidekiq

# restore from backup
docker exec gitlab-rake gitlab:backup:restore BACKUP=1458719100

# post check requirement
docker exec gitlab chown -R git /var/opt/gitlab/gitlab-rails/uploads

docker exec gitlab gitlab-ctl reconfigure
docker exec gitlab gitlab-ctl start