Instructions
This commit is contained in:
parent
2edd08e31f
commit
2a8178f787
1 changed files with 29 additions and 0 deletions
29
README.md
29
README.md
|
@ -1,2 +1,31 @@
|
||||||
# platoo
|
# platoo
|
||||||
|
|
||||||
|
## Instructions
|
||||||
|
|
||||||
|
Launch docker compose stack:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
|
Now, find the ID of your PostgreSQL database:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo docker ps
|
||||||
|
```
|
||||||
|
|
||||||
|
Mine is `1e211e6495ef`.
|
||||||
|
Now, we will copy our SQL file in the container and open a shell in it
|
||||||
|
|
||||||
|
```
|
||||||
|
docker cp platoo.sql 1e211e6495ef:/tmp
|
||||||
|
docker exec -ti 1e211e6495ef bash
|
||||||
|
```
|
||||||
|
|
||||||
|
Now, we will simply restore our file:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd /tmp
|
||||||
|
psql -U platoo platoodb < platoo.sql
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue