zetkin / translators-interface

1 stars 0 forks source link

Docker configuration #7

Closed richardolsson closed 3 years ago

richardolsson commented 3 years ago

This PR adds a very crude docker configuration. I just wanted to try out the app and was having problems with my wonky OSX python setup, so I set up a config to run it in docker instead.

It's very basic and has several issues, but since I did it I thought I'd submit it and we can iterate on it in the future.

Some flaws that should be fixed at some point:

With this config, the following should be possible:

$ docker-compose up --build -d # Or without -d and run the rest in another terminal
$ docker-compose exec django python manage.py migrate
$ docker-compose exec django python manage.py createsuperuser

The back-end will then be exposed on localhost:8000 and front-end on localhost:3080 (not 3000 by default, which is already used by Gen 3 which many developers will run in parallel).

@djbusstop You can of course continue working in your regular environment without caring about the docker config.