22 lines
519 B
Markdown
22 lines
519 B
Markdown
# 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.
|
|
- [ ]
|