Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/saren-arterius/wtako-rest-template
- Owner: Saren-Arterius
- Created: 2018-08-01T03:58:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T04:47:50.000Z (over 1 year ago)
- Last Synced: 2024-05-28T15:27:25.716Z (6 months ago)
- Topics: bull, docker-compose, express, postgres, redis
- Language: JavaScript
- Homepage:
- Size: 2.45 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
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`