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