heb-dtc / SyntropicFarming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntropicFarming

This is the repository for the Synctropic Farming project.

Applications

Backend

Frontend

Database

Deploy

docker-compose

Start the api and the db using docker-compose.

docker-compose up -d api

Because the api needs the db service to run, starting the api will automatically start the db.

Backup and Restore

There are two things to do when doing a backup of the data:

  • export the database data
  • copy the upload directory of the backend

Backup the db

docker exec syntropic-db-container pg_dump <db_name> --username <user> | gzip -9 > backup.sql.gz

Restore the db with backup file

gunzip < database/backup.sql.gz | docker exec -i db_container psql <db_name> --username <user>

About


Languages

Language:TypeScript 38.2%Language:Go 33.5%Language:JavaScript 17.8%Language:CSS 5.3%Language:PLpgSQL 3.7%Language:HTML 1.0%Language:Shell 0.4%