Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saren-arterius/wtako-rest-template

docker-compose + (express.js + babel + eslint) + (postgres + pgadmin + knex + pg-spgist_hamming) + (redis + bull) all in one
https://github.com/saren-arterius/wtako-rest-template

bull docker-compose express postgres redis

Last synced: 13 days ago
JSON representation

docker-compose + (express.js + babel + eslint) + (postgres + pgadmin + knex + pg-spgist_hamming) + (redis + bull) all in one

Awesome Lists containing this project

README

        

# Deploy environment
Ensure docker-compose installed:
1. `# apt update && apt upgrade`
2. `# apt install docker-compose`

# Build and start server (also starts on boot)
1. `# ./start.sh`

# Switch to production environment
1. Uncomment line 15, 16 of `docker-compose.yml`
2. Or better, create a prod git branch

# Access web
1. `$ ssh -L 31380:localhost:31380`
2. Ensure server started
3. Open http://localhost:31380/

# Access pgAdmin
1. `$ ssh -L 31300:localhost:31300`
2. Ensure server started
3. Open http://localhost:31300/browser/
4. Login (email: [email protected], password: pgadmin_password)
5. Create new server (host: postgres, username: postgres, password: pg_password)

# Password strings to find and replace
- `pg_password`
- `pgadmin_password`
- `redis_password`
- `jwt_secret`
-
# Update from git, rebuild docker image if needed, and restart server (also starts on boot)
1. `# ./update-restart.sh`

# Reset & delete data of postgres & redis
1. `# ./reset.sh`

# Change postgres schema without adding migration file & keep existing data (dangerous on production)
1. `# ./revolute-db.sh`