Skip to content

Commit

Permalink
fix docker-compose.yml (adjust command)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrue committed Aug 2, 2022
1 parent cd74afc commit 08fb157
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ To run the server inside a Docker container, please execute the following from t
docker build -t openapi_server .

# start up a container in the host network
docker run -p 8080:8080 openapi_server
docker run --network host --env-file ./env.file denbi/openstackgpuservice
```

Expand All @@ -185,3 +184,11 @@ OS_PROJECT_NAME=XXXXX
OS_PASSWORD=XXXXXX
```

## Running with Docker Compose
Run a OpenstackGPUService together with a memcached service container with docker compose is also
supported.

```
docker run -p 8080:8080 openapi_server
docker run --network host --env-file ./env.file denbi/openstackgpuservice
```
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ services:
- "8080:8080"
env_file:
- env.file
command: ["python3","OpenStackGPUServer.py","--memcachedHost","memcached:11211","--bind","0.0.0.0:8080"]

memcached:
image: memcached

0 comments on commit 08fb157

Please sign in to comment.