# How to move Gitea from outside to inside a container -- what paths do I need to change, and where?

**URL:** <https://forum.gitea.com/t/how-to-move-gitea-from-outside-to-inside-a-container-what-paths-do-i-need-to-change-and-where/1433>\
**Category:** Install/Maintain/Configure\
**Created:** [August 30, 2019, 4:51pm UTC](https://forum.gitea.com/t/how-to-move-gitea-from-outside-to-inside-a-container-what-paths-do-i-need-to-change-and-where/1433 "2019-08-30T16:51:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcp](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jcp](https://forum.gitea.com/u/jcp)\
**Post date:** [August 30, 2019, 4:51pm UTC](https://forum.gitea.com/t/how-to-move-gitea-from-outside-to-inside-a-container-what-paths-do-i-need-to-change-and-where/1433/1 "2019-08-30T16:51:30Z")

</div>

I am running Gitea (master) on a Linux server with PostgreSQL as database backend, and it’s been working great. Now I’d like to move it inside a Docker container.

However, I am not sure I can just switch and change the paths in app.ini. I see, for example, that gitea uses hooks in the git repositories, and those hooks have hardcoded paths – for example, in my installation, `hooks/update.d/gitea` contains:

```
#!/usr/bin/env bash
"/home/gitea/go/src/code.gitea.io/gitea/gitea" hook --config='/home/gitea/go/src/code.gitea.io/gitea/custom/conf/app.ini' update $1 $2 $3

```

Are the `{pre-uptate.d,pre-receive.d,post-receive.d}` hooks the only thing I’d have to change (that is easy, a sed script does that, no hassles), besides `app.ini`? Are paths stored in the database?

I’d like to be sure, so I won’t find broken stuff later, after the repositories are migrated and lots of additional work has been commited.

Thank you!
