Skip to content

Commit

Permalink
Update docker.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Nov 20, 2020
1 parent 63630f5 commit dd05e9d
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions docs/docker.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
# Docker Client and Server
# Docker

Its very common to dockerize the client and server so its fast and does not require any additional installations.
The client and server are available as dockerized images:

+ [Server](https://hub.docker.com/r/unglue/server)
+ [Client](https://hub.docker.com/r/unglue/client)

## Docker Compose
## Docker-Compose Server

In order to create an unglue server inside a docker-compose file for local compiling:

```yaml
version: '3'
services:
...
unglue:
image: unglue/server
ports:
- "3000:3000"
```

## Docker-Compose Client and Server

Its very common to dockerize the client and server so its fast and does not require any additional installations.

```yaml
unglueserver:
Expand All @@ -14,3 +33,11 @@ unglueclient:
volumes:
- ./:/app
```

## Docker

Run the docker image. Map port 3000 to local port 3000.

`docker run -d -p 3000:3000 unglue/server`

You should now be able to access `https://localhost:3000`.

0 comments on commit dd05e9d

Please sign in to comment.