almanach/docker-compose.yml
Frédéric Guillot e0561271cf Migrate code base to oslo.config and oslo.log
In order to migrate the code base to the "OpenStack way":

* Replace ConfigParser by oslo.config
* Replace logging by oslo.log
* Use testtools as base class for unit tests
* Add tox -e genconfig to generate config file
* Start to organize the file structure like other projects
* Define 2 cli entry points almanach-collector and almanach-api
* The docker-compose.yml is now used to run integration-tests
* Integration tests will be moved to tempest in the future
* Docker configs should be deprecated and moved to Kolla

Change-Id: I89a89a92c7bdb3125cc568323db0f9488e1380db
2016-10-13 11:28:09 -04:00

42 lines
803 B
YAML

version: '2'
services:
api:
build:
context: .
dockerfile: Dockerfile
command: almanach-api --config-file /etc/almanach/almanach.conf
depends_on:
- messaging
- database
ports:
- "80:8000"
collector:
build:
context: .
dockerfile: Dockerfile
command: almanach-collector --config-file /etc/almanach/almanach.conf
depends_on:
- database
- messaging
messaging:
image: rabbitmq
ports:
- "5672:5672"
database:
image: mongo
ports:
- "27017:27017"
test:
build:
context: .
dockerfile: Dockerfile.integration-tests
args:
SKIP_TOX: "true"
environment:
TEST_CONTAINER: "true"
depends_on:
- api
- collector
- database
- messaging