This is still a big work in progress. Needs cleaning up and refactoring. Want to contribute? Reach out to us!
- Clone this repo
- Run
yarn install
- Create a config file overwriting any settings you might need (most likely db username, pw & db name)
- Run
yarn run dev
- Visit
http://localhost:3000
- All done - You're as ready to go as a dog on a flying carpet
iOverland is a volunteer driven projects. We raise the funds needed to run our infrastructure from our users, publish our code under an opensource license.
iOverlander.com wouldn't exist without the thousands of travelers checking in, adding new places and maintaining our data. iOverlander wouldn't be possible without your help in development of this site either. If you'd like to con- tribute in any way, feel free to reach out to us!
The compose configuration configures two persistent data directories: dev_assets
& dev_pgdata
. The default path for these is ../
(the repository's parent folder)
Launch the containers by running: cd container && docker-compose -f container.yml up
The standard compose file sets up the postgres container to mount the postgres
data directory from your local filesystem. By default the path is
../dev_pgadata
(relative to this path). This way the database is persisted
when relaunching the containers.
To initialize the database, you need to create the database and prepopulate the database. You can do this with the following commands:
- Use
docker ps
to get thecontainer ID
of the postgres server - Enter into the container with:
docker exec -it CONTAINER_ID psql -U user
CREATE DATABASE ioverlander; CREATE DATABASE ioverlander_node_sessions;
- Populate the database either from your own dump or from the dev_light.sql.tgz
with the following command:
docker exec -i CONTAINER_ID psql -U user -d ioverlander < dev_light.sql
The page should now be accessible at http://localhost:3000
from your container host.