-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e81117
commit f6c5899
Showing
4 changed files
with
71 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,15 @@ | ||
.git | ||
.ipynb_checkpoints/* | ||
/notebooks/* | ||
/unused/* | ||
Dockerfile | ||
.DS_Store | ||
.gitignore | ||
README.md | ||
env.* | ||
/devops/* | ||
node_modules | ||
|
||
# To prevent storing dev/temporary container data | ||
*.csv | ||
/tmp/* |
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,9 @@ | ||
:80 { | ||
log stdout | ||
errors | ||
proxy / http://web:4100 { | ||
header_upstream Host {host} | ||
header_upstream X-Real-IP {remote} | ||
} | ||
#tls [email protected] | ||
} |
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,25 @@ | ||
FROM node:carbon | ||
|
||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
|
||
|
||
# Install app dependencies | ||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
# where available (npm@5+) | ||
COPY package*.json ./ | ||
|
||
|
||
RUN npm install | ||
RUN npm build | ||
# If you are building your code for production | ||
# RUN npm install --only=production | ||
|
||
|
||
# Bundle app source | ||
COPY . . | ||
|
||
|
||
EXPOSE 4200 | ||
CMD [ "npm", "start" ] |
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,22 @@ | ||
version: '2.1' | ||
services: | ||
proxy: | ||
image: abiosoft/caddy | ||
container_name: proxy | ||
volumes: | ||
- ./Caddyfile:/etc/Caddyfile | ||
- ./.caddy:/root/.caddy | ||
environment: | ||
- ACME_AGREE=true | ||
ports: | ||
- 80:80 | ||
restart: always | ||
links: | ||
- web | ||
depends_on: | ||
- web | ||
web: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
restart: always |