redis_pubsub:
build:
context: .
- dockerfile: Dockerfile
+ dockerfile: Dockerfile.localtest
image: o2imsdms-image
depends_on:
- postgres
- 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
- 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
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: