Skip to content

Commit

Permalink
feat: Add docker-compose.yml (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
denzuko authored Nov 13, 2023
1 parent 3c9f61e commit 97f4ed8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
13 changes: 11 additions & 2 deletions docker-development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,25 @@ Wave is no different from other web frameworks which means you can even reuse yo

## Installation

Linux / MacOS:
Clone the repo and `cd` into corresponding directory

```sh
git clone https://github.com/h2oai/wave-apps.git
cd wave-apps/docker-development
```

Linux / MacOS

```sh
docker build . -t wave_local_dev
docker run -p 10101:10101 -v $(pwd)/src:/app/src wave_local_dev:latest
```

TODO: Windows
or via `docker compose`

```sh
docker compose up
```

## Features

Expand Down
13 changes: 13 additions & 0 deletions docker-development/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
version: '3.8'

services:
wave_local_dev:
build:
context: .
dockerfile: Dockerfile
ports:
- "10101:10101"
volumes:
- ./src:/app/src
...
4 changes: 3 additions & 1 deletion docker-development/dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM python:3.7
# Force platform to download proper wheel (with waved included).
# An alternative is to either download wheel manually or download and run waved separately.
FROM --platform=linux/amd64 python:3.8

# Create a project directory.
RUN mkdir /app
Expand Down

0 comments on commit 97f4ed8

Please sign in to comment.