Open Event v1 and v2 comparison using docker-compose

To have two instances of open event v1 and v2 running locally, one can use docker-compose. The installation instructions can be found here.

Cloning the sites

In order to have the two projects running, execute clone.sh or copy the three clone commands from clone.sh into your terminal

Starting the system

docker-compose up

Initializing the database

Two databases and users are created to allow for using one postgres image with both versions. See postgres-initdb.d/create_db.sql for details. To init both databases, run

cp v2-frontend/.env.example v2-frontend/.env
cp v2-server/.env.example v2-server/.env
docker-compose start
docker-compose run v1 sh -c "python3 create_db.py && python3 manage.py db stamp head"
docker-compose run v2-server sh -c "python3 create_db.py && python3 manage.py db stamp head && python3 manage.py runserver"

Accessing the database etc

To access Postgres, Redis and v1/v2 from outside, use

App Port
postgres 5432
redis 6379
v1 5001
v2 server 5002
v2 frontend 5003