Agile deployment method with docker

This commit is contained in:
infidel
2022-12-17 01:45:33 +07:00
parent 59671130cb
commit 5d5357c57f
11 changed files with 53 additions and 7 deletions

21
Readme.md Normal file
View File

@@ -0,0 +1,21 @@
# Wireguard Backend
## Code Structure
```
ocp-wg-backend
-> wgweb # Your global configs
-> wg_api # Your shitty APIs
-> utils # Custom tools for custom tasks
```
### Docker based deployment
1. Create docker container with `docker build . -t wg-backend`
2. Run the docker with volume binding to apply realtime code changes.
```
docker run --rm -it -v $(pwd):/usr/src/app wg-backend
```
## Future works
- [ ] Implement `docker-compose` deployment method.
- [ ]