mirror of
https://github.com/UniversityOfHelsinkiCS/ohtuilmo.git
synced 2026-10-12 19:03:41 +03:00
Merge branch 'master' into add-group
This commit is contained in:
@@ -22,3 +22,14 @@ Test get request: http://localhost:3001/api/examples/. Should return { "test": "
|
||||
## Docker instructions
|
||||
|
||||
[Docker cheatsheet](https://github.com/jexniemi/Docker-cheat-page/wiki)
|
||||
|
||||
## Database instructions
|
||||
- sudo might need to be used with docker commands
|
||||
|
||||
- "docker ps" lists all running containers
|
||||
|
||||
1. Copy docker-compose.yml from shared Google drive folder
|
||||
2. Run "docker-compose up" inside the same folder where your docker-compose.yml file is. Now frontend, backend and database containers should be running
|
||||
3. Open new terminal or use detached mode (docker-compose -d up)
|
||||
4. "docker exec -it _containername_ /bin/bash" lets you run commands inside a container
|
||||
5. Run "psql -U postgres" inside container and now you should be able to do sql queries
|
||||
|
||||
Reference in New Issue
Block a user