No description
Find a file
2020-05-23 12:24:11 +02:00
db Parameterize configuration 2020-05-19 19:21:09 +02:00
public socket.io.connect 2020-05-23 12:24:11 +02:00
views http to https 2020-05-23 12:02:58 +02:00
.gitignore Initial commit 2020-05-19 18:56:49 +02:00
docker-compose.yml maj docker id 2020-05-23 11:40:01 +02:00
Dockerfile Docker et sql 2020-05-19 20:15:03 +02:00
index.js correction res.redirect 2020-05-23 11:16:09 +02:00
LICENSE Initial commit 2020-05-19 18:56:49 +02:00
package-lock.json publication code source 2020-05-19 19:14:33 +02:00
package.json publication code source 2020-05-19 19:14:33 +02:00
platoo.sql move shogi 2020-05-23 11:26:30 +02:00
README.md Improve README 2020-05-23 10:54:42 +02:00

platoo

Instructions

Launch docker compose stack:

sudo docker-compose up

Now, find the ID of your PostgreSQL database:

sudo docker ps
# My output:
# CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
# 1e211e6495ef        postgres:9.6.18     "docker-entrypoint.s…"   15 minutes ago      Up 15 minutes       5432/tcp                 platoo_postgresql_1
# 03577974bad6        victorm/platoo:v1   "node index.js"          15 minutes ago      Up 15 minutes       0.0.0.0:8080->8080/tcp   platoo_platoo_1

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