diff --git a/.circleci/config.yml b/.circleci/config.yml index 3cfe3cc..11ebff1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,7 +25,7 @@ jobs: - run: name: Docker up and build command: | - docker-compose -f vendor/docker/compose-nodiscovery.yml up -d --build + docker-compose -f vendor/docker/docker-compose-cicd.yml up -d --build - run: name: Unit tests with Redis diff --git a/vendor/docker/compose-nodiscovery.yml b/vendor/docker/compose-nodiscovery.yml index 990dad7..22714a8 100644 --- a/vendor/docker/compose-nodiscovery.yml +++ b/vendor/docker/compose-nodiscovery.yml @@ -13,7 +13,7 @@ services: depends_on: - redis environment: - - LOGGING_LEVEL=30 + - LOGGING_LEVEL=10 - PYTHONPATH="/cowbull:/cowbull/tests" - 'PERSISTER={"engine_name": "redis", "parameters": {"host": "redis", "port": 6379, "db": 0}}' networks: diff --git a/vendor/docker/docker-compose-cicd.yml b/vendor/docker/docker-compose-cicd.yml new file mode 100644 index 0000000..22714a8 --- /dev/null +++ b/vendor/docker/docker-compose-cicd.yml @@ -0,0 +1,25 @@ +version: '2' + +services: + redis: + image: 'redis' + networks: + - cowbull_network + restart: always + cowbull_svc: + build: + context: ../.. + dockerfile: vendor/docker/Dockerfile + depends_on: + - redis + environment: + - LOGGING_LEVEL=10 + - PYTHONPATH="/cowbull:/cowbull/tests" + - 'PERSISTER={"engine_name": "redis", "parameters": {"host": "redis", "port": 6379, "db": 0}}' + networks: + - cowbull_network + restart: always + ports: + - 9180:8080 +networks: + cowbull_network: