-
Notifications
You must be signed in to change notification settings - Fork 2
Home
jexniemi edited this page Nov 25, 2018
·
9 revisions
Welcome to the ohtuilmo-frontend wiki!
- sudo might need to be used with docker commands
- Create file
docker-compose.ymland copy content from docker-compose.yml file in our shared google drive folder. - Make sure docker and docker-compose are installed, and run
docker-compose upin the same directory where you placed the docker-compose.yml file. - Now frontend is running on port 7000 and backend on 7001.
- Do the same as in instructions above but comment out frontend part from docker-compose.yml so docker-compose doesn't start frontend. Now start your own frontend and use it instead.
How to use your own frontend/backend image instead of our master branch images that are on docker hub
- Use the same docker-compose.yml as in first instructions
- Replace "ohtuprojektiilmo/ohtufront" with your own local frontend image. Here is instructions how to make docker image.
- You can do the same with backend image as well.
- Run
docker-compose upto start containers.
- use
docker psto see name of database container
- Make sure database container is running
- Open new terminal or use detached mode when starting all containers (docker-compose -d up)
-
docker exec -it containername /bin/bashlets you run commands inside a container - Run
psql -U postgresinside container and now you should be able to do sql queries - Run
\dtto show all tables in the database