Fix the objref issue.
[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       - API_HOST=api
15       - DB_HOST=postgres
16       - DB_PASSWORD=o2ims123
17       - REDIS_HOST=redis
18       - PYTHONDONTWRITEBYTECODE=1
19       - OS_AUTH_URL=${OS_AUTH_URL}
20       - OS_USERNAME=${OS_USERNAME}
21       - OS_PASSWORD=${OS_PASSWORD}
22       - LOGGING_CONFIG_LEVEL=DEBUG
23     volumes:
24       - ./configs:/configs
25       - ./o2ims:/o2ims
26       - ./o2dms:/o2dms
27       - ./o2common:/o2common
28       - ./o2app:/o2app
29       - ./helm_sdk:/helm_sdk
30       - ./tests:/tests
31     entrypoint:
32       - /bin/sh
33       - /tests/o2app-redis-entry.sh
34
35   helm_cli:
36     image: o2imsdms
37     depends_on:
38       - watcher
39     environment:
40       - LOGGING_CONFIG_LEVEL=DEBUG
41       - HELM_USER_PASSWD=St8rlingX*
42     volumes:
43       - ./configs:/configs
44       - ./helm_sdk:/helm_sdk
45       - ./tests:/tests
46     entrypoint:
47       - /bin/sh
48       - /tests/o2app-helmcli-entry.sh
49     ports:
50       - "10022:22"
51
52   api:
53     image: o2imsdms
54     depends_on:
55       - redis_pubsub
56     environment:
57       - DB_HOST=postgres
58       - DB_PASSWORD=o2ims123
59       - API_HOST_EXTERNAL_FLOATING=${API_HOST_EXTERNAL_FLOATING}
60       - REDIS_HOST=redis
61       - PYTHONDONTWRITEBYTECODE=1
62       - FLASK_APP=/o2app/entrypoints/flask_application.py
63       - FLASK_DEBUG=1
64       - PYTHONUNBUFFERED=1
65       - OS_AUTH_URL=${OS_AUTH_URL}
66       - OS_USERNAME=${OS_USERNAME}
67       - OS_PASSWORD=${OS_PASSWORD}
68       - LOGGING_CONFIG_LEVEL=DEBUG
69       - HELM_USER_PASSWD=St8rlingX*
70     volumes:
71       - ./configs:/configs
72       - ./o2ims:/o2ims
73       - ./o2dms:/o2dms
74       - ./o2common:/o2common
75       - ./o2app:/o2app
76       - ./helm_sdk:/helm_sdk
77       - ./tests:/tests
78     entrypoint:
79       - /bin/sh
80       - /tests/o2app-api-entry.sh
81     ports:
82       - "5005:80"
83
84   watcher:
85     build:
86       context: .
87       dockerfile: Dockerfile.localtest
88     image: o2imsdms
89     depends_on:
90       - redis_pubsub
91     environment:
92       - API_HOST_EXTERNAL_FLOATING=${API_HOST_EXTERNAL_FLOATING}
93       - DB_HOST=postgres
94       - DB_PASSWORD=o2ims123
95       - REDIS_HOST=redis
96       - PYTHONDONTWRITEBYTECODE=1
97       - OS_AUTH_URL=${OS_AUTH_URL}
98       - OS_USERNAME=${OS_USERNAME}
99       - OS_PASSWORD=${OS_PASSWORD}
100       - LOGGING_CONFIG_LEVEL=DEBUG
101     volumes:
102       - ./configs:/configs
103       - ./o2ims:/o2ims
104       - ./o2dms:/o2dms
105       - ./o2common:/o2common
106       - ./o2app:/o2app
107       - ./helm_sdk:/helm_sdk
108       - ./tests:/tests
109     entrypoint:
110       - /bin/sh
111       - /tests/o2app-watcher-entry.sh
112
113   postgres:
114     image: postgres:9.6
115     environment:
116       - POSTGRES_USER=o2ims
117       - POSTGRES_PASSWORD=o2ims123
118     ports:
119       - "54321:5432"
120
121   redis:
122     image: redis:alpine
123     ports:
124       - "63791:6379"