mirror of
https://github.com/tiennm99/keepalive.git
synced 2026-10-13 02:14:44 +00:00
feat(deploy): add local compose setup
This commit is contained in:
1 parent
f3a23ee91e
commit
f418e4aad7
2 files changed
+18
-1
No files matched your search
@@ -50,12 +50,20 @@ services:
|
||||
| `mongodb` | `go.mongodb.org/mongo-driver/v2` | `uri`, `database`, `collection` |
|
||||
| `couchbase` | `github.com/couchbase/gocb/v2` | `connection_string`, `username`, `password`, `bucket_name`, `scope_name`, `collection_name` |
|
||||
|
||||
## Quick start (Compose)
|
||||
|
||||
```bash
|
||||
cp keepalive.example.yaml keepalive.yaml
|
||||
docker compose up -d --build
|
||||
```
|
||||
|
||||
## Quick start (Docker)
|
||||
|
||||
```bash
|
||||
docker build -t keepalive:local .
|
||||
docker run -d --name keepalive --restart unless-stopped \
|
||||
-v "$PWD/keepalive.yaml:/keepalive.yaml:ro" \
|
||||
ghcr.io/tiennm99/keepalive:latest
|
||||
keepalive:local
|
||||
```
|
||||
|
||||
## Quick start (local)
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
keepalive:
|
||||
build:
|
||||
context: .
|
||||
image: keepalive:local
|
||||
container_name: keepalive
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./keepalive.yaml:/keepalive.yaml:ro
|
||||
Reference in new issue
Block a user