added docker-compose file for development work
This commit is contained in:
parent
9ff247fde7
commit
5f65451661
21
Dockerfile-dev
Normal file
21
Dockerfile-dev
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Build:
|
||||||
|
# docker build -t tellform-prod -f ./Dockerfile-production .
|
||||||
|
#
|
||||||
|
# Run:
|
||||||
|
# docker run -it tellform-prod
|
||||||
|
|
||||||
|
FROM node:7
|
||||||
|
MAINTAINER David Baldwynn <team@tellform.com>
|
||||||
|
|
||||||
|
# Install NPM Global Libraries
|
||||||
|
RUN npm install --quiet -g grunt bower && npm cache clean
|
||||||
|
|
||||||
|
ADD . /code
|
||||||
|
WORKDIR /code
|
||||||
|
|
||||||
|
RUN npm install --quiet
|
||||||
|
RUN bower install --interactive-mode=false --allow-root
|
||||||
|
RUN grunt build
|
||||||
|
|
||||||
|
# Run TellForm server
|
||||||
|
CMD ["grunt"]
|
44
docker-compose.yaml
Normal file
44
docker-compose.yaml
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
tellform:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: ./Dockerfile-dev
|
||||||
|
volumes:
|
||||||
|
- .:/code
|
||||||
|
ports:
|
||||||
|
- "5000:5000"
|
||||||
|
- 587:587
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
links:
|
||||||
|
- mongo
|
||||||
|
- redis
|
||||||
|
depends_on:
|
||||||
|
- mongo
|
||||||
|
- redis
|
||||||
|
redis:
|
||||||
|
restart: always
|
||||||
|
image: redis
|
||||||
|
volumes:
|
||||||
|
- "$ROOT/redis:/data"
|
||||||
|
ports:
|
||||||
|
- "6379:6379"
|
||||||
|
web:
|
||||||
|
image: tellform/nginx:stable
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
- "20523:20523"
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
volumes:
|
||||||
|
- "$ROOT/certs:/certs"
|
||||||
|
mongo:
|
||||||
|
restart: always
|
||||||
|
image: mongo
|
||||||
|
volumes:
|
||||||
|
- "$ROOT/mongo:/data"
|
||||||
|
ports:
|
||||||
|
- "27107:27107"
|
Loading…
Reference in a new issue