new docker compose files for building and launching the skill service

pull/1/head
Chris Veilleux 2018-08-24 17:28:33 -05:00
parent 82b3bc5b76
commit 6837ad4636
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,9 @@
version: '3.7'
services:
skill-service:
environment:
GUNICORN_KEYFILE: localhost.key
GUNICORN_CRTFILE: localhost.crt
GUNICORN_CACERT: rootCA.pem
SKILL_DB_HOST: skill-db
SKILL_DB_PORT: 27017

View File

@ -0,0 +1,34 @@
# Base configuration to build and run the skill service
#
# By design, there are no default values in this file. Everything specified
# below applies to all environments. This prevents bad default values from
# being used accidentally. An override file is defined for each environment
# with configurations that are not common to all environments.
version: '3.7'
services:
skill-service:
build:
context: .
container_name: skill-service
depends_on:
- skill-db
image: skill-service
ports:
- '5000:5000'
volumes:
- type: volume
source: certificate_volume
target: /etc/ssl/certs
skill-db:
container_name: skill-db
image: mongo
volumes:
- type: bind
source: /Users/chrisveilleux/mongodb
target: /data/db
volumes:
certificate_volume:
external:
name: ssl_test_volume