Merge "Update the API docs with swagger"
[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   #     - ./share:/share
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       - ./share:/share
73       - ./o2ims:/o2ims
74       - ./o2dms:/o2dms
75       - ./o2common:/o2common
76       - ./o2app:/o2app
77       - ./helm_sdk:/helm_sdk
78       - ./tests:/tests
79     entrypoint:
80       - /bin/sh
81       - /tests/o2app-api-entry2.sh
82     ports:
83       - "5005:80"
84
85   watcher:
86     build:
87       context: .
88       dockerfile: Dockerfile.localtest
89     image: o2imsdms
90     depends_on:
91       - redis_pubsub
92     environment:
93       - API_HOST_EXTERNAL_FLOATING=${API_HOST_EXTERNAL_FLOATING}
94       - DB_HOST=postgres
95       - DB_PASSWORD=o2ims123
96       - REDIS_HOST=redis
97       - PYTHONDONTWRITEBYTECODE=1
98       - OS_AUTH_URL=${OS_AUTH_URL}
99       - OS_USERNAME=${OS_USERNAME}
100       - OS_PASSWORD=${OS_PASSWORD}
101       - LOGGING_CONFIG_LEVEL=DEBUG
102     volumes:
103       - ./configs:/configs
104       - ./o2ims:/o2ims
105       - ./o2dms:/o2dms
106       - ./o2common:/o2common
107       - ./o2app:/o2app
108       - ./helm_sdk:/helm_sdk
109       - ./tests:/tests
110     entrypoint:
111       - /bin/sh
112       - /tests/o2app-watcher-entry.sh
113
114   postgres:
115     image: postgres:9.6
116     environment:
117       - POSTGRES_USER=o2ims
118       - POSTGRES_PASSWORD=o2ims123
119     ports:
120       - "54321:5432"
121
122   redis:
123     image: redis:alpine
124     ports:
125       - "63791:6379"