-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implements Docker and Docker Compose support * Update the README file with usage instructions * Add the files Dockerfile, docker-compose.yml and .dockerignore * Change Docker image version from 0.1.0 to latest
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Packages | ||
.build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM vapor/vapor:1.0.9-xenial | ||
|
||
WORKDIR /app | ||
|
||
COPY ./ ./ | ||
|
||
RUN vapor build | ||
|
||
EXPOSE 8080 | ||
|
||
# CMD vapor run | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -203,6 +203,16 @@ $ vapor build | |
$ vapor run | ||
``` | ||
|
||
### Using Docker | ||
|
||
It's also possible to run the app using [Docker](https://www.docker.com/) and [Docker Compose](https://docs.docker.com/compose/). It can be done by running the commands below. | ||
|
||
```sh | ||
$ git clone --recursive [email protected]:joeblau/gitignore.io.git | ||
$ cd gitignore.io/ | ||
$ docker-compose up -d | ||
``` | ||
|
||
## Companies | ||
|
||
Here are some companies that use gitignore.io: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: "3.5" | ||
|
||
services: | ||
app: | ||
image: gitignore-io:latest | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
ports: | ||
- "8080:8080" | ||
command: vapor run |