X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=docker-compose.yml;h=02190b219c8d88186d7a4690cc8d2f6e1249ca2c;hb=refs%2Fchanges%2F69%2F7069%2F2;hp=4ffc2f1f62086387b1772d2577ab9c4bf0b71717;hpb=f10107e78b324fc607fe06486764588f38fc220d;p=pti%2Fo2.git diff --git a/docker-compose.yml b/docker-compose.yml index 4ffc2f1..02190b2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: redis_pubsub: build: context: . - dockerfile: Dockerfile + dockerfile: Dockerfile.localtest image: o2imsdms-image depends_on: - postgres @@ -18,14 +18,16 @@ services: - OS_AUTH_URL=${OS_AUTH_URL} - OS_USERNAME=${OS_USERNAME} - OS_PASSWORD=${OS_PASSWORD} + - LOGGING_CONFIG_LEVEL=DEBUG volumes: + - ./configs:/configs - ./o2ims:/o2ims - ./o2dms:/o2dms - ./o2common:/o2common - ./tests:/tests entrypoint: - - python - - /o2ims/entrypoints/redis_eventconsumer.py + - /bin/sh + - /tests/o2ims-redis-entry.sh api: image: o2imsdms-image @@ -43,7 +45,9 @@ services: - OS_AUTH_URL=${OS_AUTH_URL} - OS_USERNAME=${OS_USERNAME} - OS_PASSWORD=${OS_PASSWORD} + - LOGGING_CONFIG_LEVEL=DEBUG volumes: + - ./configs:/configs - ./o2ims:/o2ims - ./o2dms:/o2dms - ./o2common:/o2common @@ -56,6 +60,33 @@ services: ports: - "5005:80" + watcher: + build: + context: . + dockerfile: Dockerfile.localtest + image: o2imsdms-image + depends_on: + - postgres + - redis + environment: + - DB_HOST=postgres + - DB_PASSWORD=o2ims123 + - REDIS_HOST=redis + - PYTHONDONTWRITEBYTECODE=1 + - OS_AUTH_URL=${OS_AUTH_URL} + - OS_USERNAME=${OS_USERNAME} + - OS_PASSWORD=${OS_PASSWORD} + - LOGGING_CONFIG_LEVEL=DEBUG + volumes: + - ./configs:/configs + - ./o2ims:/o2ims + - ./o2dms:/o2dms + - ./o2common:/o2common + - ./tests:/tests + entrypoint: + - /bin/sh + - /tests/o2ims-watcher-entry.sh + postgres: image: postgres:9.6 environment: