Dockerfile (and docker-compose.yml)

This commit is contained in:
Eric van der Vlist 2020-04-18 21:50:44 +02:00
parent d143cfdae5
commit 8993b0102c
3 changed files with 90 additions and 1 deletions

View File

@ -1,13 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="BranchesTreeState">
<expand>
<path>
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
</path>
<path>
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
</path>
<path>
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
</path>
</expand>
<select />
</component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="2f410059-724a-491a-8690-bce50e147577" name="Default Changelist" comment="" /> <list default="true" id="2f410059-724a-491a-8690-bce50e147577" name="Default Changelist" comment="submodule">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" /> <option name="LAST_RESOLUTION" value="IGNORE" />
</component> </component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="ProjectId" id="1aiWjwSY2n0nFRcjez9YRoWFUXs" /> <component name="ProjectId" id="1aiWjwSY2n0nFRcjez9YRoWFUXs" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState"> <component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" /> <option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" /> <option name="showLibraryContents" value="true" />
@ -30,12 +54,39 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1587219033679</updated> <updated>1587219033679</updated>
</task> </task>
<task id="LOCAL-00001" summary="submodule">
<created>1587219513473</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1587219513473</updated>
</task>
<option name="localTasksCounter" value="2" />
<servers /> <servers />
</component> </component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="submodule" />
<option name="LAST_COMMIT_MESSAGE" value="submodule" />
</component>
<component name="WindowStateProjectService"> <component name="WindowStateProjectService">
<state x="2062" y="851" width="1024" height="845" key="#Project_Structure" timestamp="1587219041942"> <state x="2062" y="851" width="1024" height="845" key="#Project_Structure" timestamp="1587219041942">
<screen x="67" y="27" width="3773" height="2133" /> <screen x="67" y="27" width="3773" height="2133" />
</state> </state>
<state x="2062" y="851" width="1024" height="845" key="#Project_Structure/67.27.3773.2133@67.27.3773.2133" timestamp="1587219041942" /> <state x="2062" y="851" width="1024" height="845" key="#Project_Structure/67.27.3773.2133@67.27.3773.2133" timestamp="1587219041942" />
<state x="1870" y="972" width="800" height="528" key="Vcs.Push.Dialog.v2" timestamp="1587219517605">
<screen x="67" y="27" width="3773" height="2133" />
</state>
<state x="1870" y="972" width="800" height="528" key="Vcs.Push.Dialog.v2/67.27.3773.2133@67.27.3773.2133" timestamp="1587219517605" />
</component> </component>
</project> </project>

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM node:alpine
MAINTAINER Eric van der Vlist <vdv@dyomedea.com>
WORKDIR /deplacement-covid-19
COPY deplacement-covid-19/*.json ./
RUN npm install
COPY deplacement-covid-19/ ./
EXPOSE 1234
CMD cd /deplacement-covid-19; npm start

23
docker-compose.yml Normal file
View File

@ -0,0 +1,23 @@
version: "3"
services:
covid:
build: .
environment:
- VIRTUAL_HOST=covid.vdv.re
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=covid.vdv.re
- LETSENCRYPT_EMAIL=vdv@dyomedea.com
networks:
- global
restart: always
networks:
global:
external:
name: global