Skip to content

Commit

Permalink
v0.1.1 - Add http port conf, nginx version, and updated image versions
Browse files Browse the repository at this point in the history
  • Loading branch information
NanoCode012 committed Apr 26, 2021
2 parents 38adda9 + ed224e2 commit c7b74d5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DOCKER_NODE_VERSION=15.13.0-alpine
DOCKER_NODE_VERSION=15.14.0-alpine
DOCKER_NGINX_VERSION=1.20.0-alpine
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This repo aims to create a one-stop script which would allow the setup of a MERN
- docker-compose
- wget

Tested working with Ubuntu 20.04

# Setup

```bash
Expand All @@ -27,10 +29,12 @@ Note: Ignore `Git repo not initialized Error: Command failed: git --version` whe
## Production

```bash
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml -f docker-compose.http.yml up -d --build
```

Add `-f docker-compose.ssl.yml` for SSL setup
Add `-f docker-compose.ssl.yml` for SSL setup and remove `-f docker-compose.http.yml`.

_TIP_: Make a bash file that runs the above for you. This functionality will be added later.

## Development

Expand Down
5 changes: 5 additions & 0 deletions docker-compose.http.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.3"
services:
nginx:
ports:
- "80:80"
5 changes: 3 additions & 2 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Pull in the from the official nginx image.
FROM nginx
ARG DOCKER_NGINX_VERSION

FROM nginx:$DOCKER_NGINX_VERSION

EXPOSE 80

Expand Down

0 comments on commit c7b74d5

Please sign in to comment.