Skip to content

Commit

Permalink
feat: Docker compose (#1767)
Browse files Browse the repository at this point in the history
* Added docker-compose.yml file to replace Dockerfile.

* Added instruction in the README.md on starting the docker-compose build.
  • Loading branch information
alice-werefox authored May 8, 2020
1 parent 511d166 commit a4820a2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ To build a Docker image for production:

Now Pinafore is running at `localhost:4002`.

### docker-compose

Alternatively, use docker-compose to build and serve the image for production:

docker-compose up --build -d

The image will build and start, then detach from the terminal running at `localhost:4002`.

### Updating

To keep your version of Pinafore up to date, you can use `git` to check out the latest tag:
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
version: "3"
services:
pinafore:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
image: pinafore:latest
ports:
- 4002:4002

0 comments on commit a4820a2

Please sign in to comment.