Skip to content

Commit

Permalink
Add docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
andylibrian committed Mar 16, 2021
1 parent 681d961 commit 9878241
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ Then open [http://localhost:9009](http://localhost:9009)
terjang -h
```

### Docker compose

```bash
git clone [email protected]:andylibrian/terjang.git
cd terjang
docker-compose up -d
```

Then open [http://localhost:9009](http://localhost:9009)


## Development

Prerequisites:
Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.9'
services:
server:
image: 'ghcr.io/andylibrian/terjang:latest'
command: ["server"]
ports:
- 9009:9009
worker1:
image: 'ghcr.io/andylibrian/terjang:latest'
command: ["worker", "--host", "server", "--name", "worker1"]
worker2:
image: 'ghcr.io/andylibrian/terjang:latest'
command: ["worker", "--host", "server", "--name", "worker2"]

0 comments on commit 9878241

Please sign in to comment.