Changeset b4369c8
- Timestamp:
- 06/11/22 23:59:03 (2 years ago)
- Branches:
- main
- Children:
- fe03f69
- Parents:
- 0af535a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
README.md
r0af535a rb4369c8 3 3 Firstly, create a .env file in the project's root directory and populate it like so: 4 4 5 HOME_URL="http://localhost:3000"6 POSTGRES_HOST="db"7 POSTGRES_USER="postgres"8 POSTGRES_PASSWORD="postgres"9 POSTGRES_DB="postgres"5 HOME_URL="http://localhost:3000" 6 POSTGRES_HOST="db" 7 POSTGRES_USER="postgres" 8 POSTGRES_PASSWORD="postgres" 9 POSTGRES_DB="postgres" 10 10 11 11 12 12 Now, in your console, navigate to the project's root directory and run: 13 13 14 docker-compose up14 docker-compose up 15 15 16 16 … … 18 18 If you are configuring this project for the first time, do the following, in order to set up the database. 19 19 20 Note: The containers should be running in the background! (previously started with docker-compose up)20 -- Note: The containers should be running in the background! (previously started with docker-compose up) 21 21 22 22 Open another console and run: 23 23 24 docker exec -it name_of_db_container /bin/bash25 psql -U postgres postgres `<` /usr/local/app/dummy_database.sql24 docker exec -it name_of_db_container /bin/bash 25 psql -U postgres postgres `<` /usr/local/app/dummy_database.sql 26 26 27 (When inserting `<`, it should not be surrounded by quotation marks) 28 27 -- Note: When inserting `<`, it should not be surrounded by quotation marks 29 28 =========================================================================== 30 29
Note:
See TracChangeset
for help on using the changeset viewer.