Fix: UpdateDms throwing error that no attribute 'events'
[pti/o2.git] / docker-compose.yml
1 version: "3"
2
3 services:
4
5   redis_pubsub:
6     build:
7       context: .
8       dockerfile: Dockerfile.localtest
9     image: o2imsdms
10     depends_on:
11       - postgres
12       - redis
13     environment:
14       - DB_HOST=postgres
15       - DB_PASSWORD=o2ims123
16       - REDIS_HOST=redis
17       - PYTHONDONTWRITEBYTECODE=1
18       - OS_AUTH_URL=${OS_AUTH_URL}
19       - OS_USERNAME=${OS_USERNAME}
20       - OS_PASSWORD=${OS_PASSWORD}
21       - LOGGING_CONFIG_LEVEL=DEBUG
22     volumes:
23       - ./configs:/configs
24       - ./o2ims:/o2ims
25       - ./o2dms:/o2dms
26       - ./o2common:/o2common
27       - ./o2app:/o2app
28       - ./tests:/tests
29     entrypoint:
30       - /bin/sh
31       - /tests/o2app-redis-entry.sh
32
33   api:
34     image: o2imsdms
35     depends_on:
36       - redis_pubsub
37     environment:
38       - DB_HOST=postgres
39       - DB_PASSWORD=o2ims123
40       - API_HOST=api
41       - REDIS_HOST=redis
42       - PYTHONDONTWRITEBYTECODE=1
43       - FLASK_APP=/o2app/entrypoints/flask_application.py
44       - FLASK_DEBUG=1
45       - PYTHONUNBUFFERED=1
46       - OS_AUTH_URL=${OS_AUTH_URL}
47       - OS_USERNAME=${OS_USERNAME}
48       - OS_PASSWORD=${OS_PASSWORD}
49       - LOGGING_CONFIG_LEVEL=DEBUG
50     volumes:
51       - ./configs:/configs
52       - ./o2ims:/o2ims
53       - ./o2dms:/o2dms
54       - ./o2common:/o2common
55       - ./o2app:/o2app
56       - ./tests:/tests
57     entrypoint:
58       - /bin/sh
59       - /tests/o2app-api-entry.sh
60     ports:
61       - "5005:80"
62
63   watcher:
64     build:
65       context: .
66       dockerfile: Dockerfile.localtest
67     image: o2imsdms
68     depends_on:
69       - redis_pubsub
70     environment:
71       - DB_HOST=postgres
72       - DB_PASSWORD=o2ims123
73       - REDIS_HOST=redis
74       - PYTHONDONTWRITEBYTECODE=1
75       - OS_AUTH_URL=${OS_AUTH_URL}
76       - OS_USERNAME=${OS_USERNAME}
77       - OS_PASSWORD=${OS_PASSWORD}
78       - LOGGING_CONFIG_LEVEL=DEBUG
79     volumes:
80       - ./configs:/configs
81       - ./o2ims:/o2ims
82       - ./o2dms:/o2dms
83       - ./o2common:/o2common
84       - ./o2app:/o2app
85       - ./tests:/tests
86     entrypoint:
87       - /bin/sh
88       - /tests/o2app-watcher-entry.sh
89
90   postgres:
91     image: postgres:9.6
92     environment:
93       - POSTGRES_USER=o2ims
94       - POSTGRES_PASSWORD=o2ims123
95     ports:
96       - "54321:5432"
97
98   redis:
99     image: redis:alpine
100     ports:
101       - "63791:6379"