We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 145b513 commit 4885ab1Copy full SHA for 4885ab1
Dockerfile
@@ -0,0 +1,16 @@
1
+# We need
2
+
3
+# 1) node 6.x.x
4
+# 2) postgres
5
+# 3)
6
7
+FROM node:6
8
+RUN mkdir /code
9
+ADD . /code
10
+RUN mkdir /code/build
11
+ADD . /code/builddock
12
+WORKDIR /code
13
+RUN npm install
14
+EXPOSE 80
15
+CMD ["npm", "test"]
16
docker-compose.yml
@@ -0,0 +1,19 @@
+version: "2"
+services:
+ web:
+ build: .
+ ports:
+ - 80:3000
+ command: bash -c 'while !</dev/tcp/db/5432; do sleep 1; done; npm start'
+ depends_on:
+ - db
+ environment:
+ - DATABASE_URL=postgres://postgres:password@db:5432/forum
+ - PORT=3000
+ - FORUM_STORAGE_ADAPTER=S3
+ db:
+ image: postgres
17
+ - POSTGRES_USER=forum
18
+ - POSTGRES_PASSWORD=password
19
+ - POSTGRES_DB=forum
0 commit comments