mirror of
https://github.com/vernu/textbee.git
synced 2026-04-19 06:22:10 -04:00
update readme with 'Dockerized env' section
This commit is contained in:
19
README.md
19
README.md
@@ -158,6 +158,25 @@ curl -X GET "https://api.textbee.dev/api/v1/gateway/devices/YOUR_DEVICE_ID/get-r
|
||||
```
|
||||
4. Ensure your domain points to your VPS and Caddy is configured properly.
|
||||
|
||||
### Dockerized env
|
||||
#### Requirements:
|
||||
- Docker installed
|
||||
- docker-compose installed
|
||||
1. After setting up Firebase, update your `.env` in `web` && `api` folder.
|
||||
```bash
|
||||
cd web && cp .env.example .env \
|
||||
&& cd ../api && cp .env.example .env
|
||||
```
|
||||
2. Navigate to root folder and execute docker-compose.yml file.
|
||||
This will spin up `web` container, `api` container alongside with `MongoDB` and `MongoExpress`. `TextBee` database will be automatically created.
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
To stop the containers simply type
|
||||
```bash
|
||||
docker-compose down
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions are welcome!
|
||||
|
||||
Reference in New Issue
Block a user