build:
context: .
dockerfile: Dockerfile.localtest
- image: o2imsdms-image
+ image: o2imsdms
depends_on:
- postgres
- redis
- 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
+ - ./o2app:/o2app
- ./tests:/tests
entrypoint:
- /bin/sh
- - /o2ims/entrypoints/o2ims-redis-entry.sh
+ - /tests/o2app-redis-entry.sh
api:
- image: o2imsdms-image
+ image: o2imsdms
depends_on:
- redis_pubsub
environment:
- API_HOST=api
- REDIS_HOST=redis
- PYTHONDONTWRITEBYTECODE=1
- - FLASK_APP=/o2ims/entrypoints/flask_application.py
+ - FLASK_APP=/o2app/entrypoints/flask_application.py
- FLASK_DEBUG=1
- PYTHONUNBUFFERED=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
+ - ./o2app:/o2app
- ./tests:/tests
entrypoint:
- - flask
- - run
- - --host=0.0.0.0
- - --port=80
+ - /bin/sh
+ - /tests/o2app-api-entry.sh
ports:
- "5005:80"
build:
context: .
dockerfile: Dockerfile.localtest
- image: o2imsdms-image
+ image: o2imsdms
depends_on:
- - postgres
- - redis
+ - redis_pubsub
environment:
- DB_HOST=postgres
- DB_PASSWORD=o2ims123
- 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
+ - ./o2app:/o2app
- ./tests:/tests
entrypoint:
- /bin/sh
- - /o2ims/entrypoints/o2ims-watcher-entry.sh
+ - /tests/o2app-watcher-entry.sh
postgres:
image: postgres:9.6