-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
175 lines (163 loc) · 4.34 KB
/
docker-compose.test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
version: "3.7"
services:
iss-test-db:
container_name: iss-test-db
image: postgres:15.3-alpine
restart: always
environment:
POSTGRES_DB: iss_test_app_db
POSTGRES_HOST_AUTH_METHOD: trust
networks:
- iss_test_network
iss-test-storage-db:
image: mongo:7.0.1-rc0
container_name: iss-test-storage-db
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: testuser
MONGO_INITDB_ROOT_PASSWORD: testuserpass
networks:
- iss_test_network
iss-test-back:
container_name: iss-test-back
image: iss_back_tst
build:
dockerfile: Dockerfile.backend
context: .
restart: always
depends_on:
- iss-test-db
environment:
DJANGO_SUPERUSER_USERNAME: admin
DJANGO_SUPERUSER_PASSWORD: admin
DB_HOST: iss-test-db
DB_NAME: iss_test_app_db
CASE: test
DEBUG: "true"
SERVER_ORIGINS: "iss-test-front,iss-test-back"
SECRET_KEY: test-secret-key
BACKEND_PORT: 8000
MAX_WORKER: 1
command: >
sh -c "python manage.py makemigrations user &&
python manage.py makemigrations project &&
python manage.py makemigrations attribute &&
python manage.py makemigrations file &&
python manage.py makemigrations archive &&
python manage.py migrate &&
python manage.py createsuperuser [email protected] --noinput &&
gunicorn --config './conf/gunicorn_conf.py' proj_back.wsgi:application"
networks:
- iss_test_network
iss-test-storage:
container_name: iss-test-storage
image: iss_storage_tst
build:
dockerfile: Dockerfile.storage
context: .
restart: always
environment:
DB_HOST: iss-test-storage-db
APP_BACKEND_URL: iss-test-back:8000
DB_USER: testuser
DB_PASSWORD: testuserpass
DEBUG: "true"
CELERY_BROKER_URL: redis://iss-test-broker:6379/0
SECRET_KEY: test-secret-key
STORAGE_PORT: 9000
depends_on:
- iss-test-storage-db
- iss-test-back
command: python3 src/main.py
networks:
- iss_test_network
iss-test-broker:
container_name: iss-test-broker
image: redis:alpine3.18
restart: always
command: redis-server
networks:
- iss_test_network
iss-test-worker:
container_name: iss-test-worker
build:
dockerfile: Dockerfile.storage
context: .
restart: always
environment:
DB_HOST: iss-test-storage-db
APP_BACKEND_URL: iss-test-back:8000
DB_USER: testuser
DB_PASSWORD: testuserpass
DEBUG: "true"
CELERY_BROKER_URL: redis://iss-test-broker:6379/0
SECRET_KEY: test-secret-key
STORAGE_PORT: 9000
depends_on:
- iss-test-broker
- iss-test-back
command: python3 src/worker.py
networks:
- iss_test_network
iss-test-front:
container_name: iss-test-front
image: iss_front_tst
build:
dockerfile: Dockerfile.frontend
context: .
restart: always
depends_on:
- iss-test-back
environment:
CASE: test
CI: "true"
command: npm start
networks:
- iss_test_network
iss-tests:
container_name: iss-tests
image: iss_tests
build:
dockerfile: Dockerfile.tests
context: .
# depends_on:
# - iss-selenium-chrome
# - iss-selenium-fox
command: tail -f /dev/null
networks:
- iss_test_network
# iss-selenium-hub:
# container_name: iss-selenium-hub
# image: seleniarm/hub
# depends_on:
# - iss-test-front
# networks:
# - iss_test_network
# iss-selenium-chrome:
# container_name: iss-selenium-chrome
# image: seleniarm/node-chromium
# depends_on:
# - iss-selenium-hub
# volumes:
# - /dev/shm:/dev/shm
# environment:
# SE_EVENT_BUS_HOST: iss-selenium-hub
# SE_EVENT_BUS_PUBLISH_PORT: 4442
# SE_EVENT_BUS_SUBSCRIBE_PORT: 4443
# networks:
# - iss_test_network
# iss-selenium-fox:
# container_name: iss-selenium-fox
# image: seleniarm/node-firefox
# depends_on:
# - iss-selenium-hub
# volumes:
# - /dev/shm:/dev/shm
# environment:
# SE_EVENT_BUS_HOST: iss-selenium-hub
# SE_EVENT_BUS_PUBLISH_PORT: 4442
# SE_EVENT_BUS_SUBSCRIBE_PORT: 4443
# networks:
# - iss_test_network
networks:
iss_test_network: