Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

how to migrate these dockers to other host ? #26

Open
yungang opened this issue Oct 24, 2016 · 2 comments
Open

how to migrate these dockers to other host ? #26

yungang opened this issue Oct 24, 2016 · 2 comments

Comments

@yungang
Copy link

yungang commented Oct 24, 2016

I had installed taigadocker on one host, but now I need migrate them to a new host, what should I do ?

@JadianZheng
Copy link

I meet the same problem.

@yungang
Copy link
Author

yungang commented Nov 1, 2016

there are two methods, one, do a new install & migrate, or 2, commit container, save image, then load image on new hosts.
method 1, new install and migrate(i think this is the simplest way):
1,export db 'taiga' from postgresql, user is taiga and password is password just as in taiga.yml
#pg_dumpall -Utaiga > taiga.sql
2, backup directores media and static on taiga-back container
3, reinstall taiga dockers
4, restore media and static directories and import taiga.sql
done

method 2, save images and re-load images:
1, docker commit and save docket taiga-front and taiga-back
2, docker save docker-front and docker-back
3, move images to new hosts
4, docker load images and create containers

docker run -it --name postgres postgres /bin/bash

docker run --name taiga-back  --expose 8000 --link postgres:postgres taigadocker_taigaback:backup /usr/local/taiga/start

docker run -p 80:80 --expose 80 --expose 554  --name taiga-front --link taiga-back:taigaback --volumes-from taiga-back taigadocker_taigafront:backup /usr/local/taiga/start

-- by the way ,now taiga 3.0 has been released, so, i think you need upgrade, see Dockerfile of taiga-back and taiga-front, you will see how to do
BUT, do remember run
manage.py loaddata initial_project_templates --traceback
on taiga-back container after you upgrade, otherwise you will failed when you create new projects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants