kopia lustrzana https://github.com/nolanlawson/pinafore
feat: Docker compose (#1767)
* Added docker-compose.yml file to replace Dockerfile. * Added instruction in the README.md on starting the docker-compose build.issue-1766
rodzic
511d16694c
commit
a4820a2792
|
@ -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:
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
version: "3"
|
||||
services:
|
||||
pinafore:
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: pinafore:latest
|
||||
ports:
|
||||
- 4002:4002
|
Ładowanie…
Reference in New Issue