-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 1.65 KB
/
docker-compose.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
version: '3.8'
services:
testrail-app-service:
build:
context: .
dockerfile: Dockerfile
ports:
- 9090:8000
restart: always
depends_on:
- "testrail-db-service"
volumes:
- .:/app
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- MYSQL_DB_HOST=${MYSQL_DB_HOST}
- MYSQL_DB_PORT=${MYSQL_DB_PORT}
- MYSQL_DB_NAME=${MYSQL_DB_NAME}
- MYSQL_DJANGO_USER=${MYSQL_DJANGO_USER}
- CHANNEL_REDIS_HOST=${CHANNEL_REDIS_HOST}
- CHANNEL_REDIS_PORT=${CHANNEL_REDIS_PORT}
- CELERY_REDIS_HOST=${CELERY_REDIS_HOST}
- CELERY_REDIS_PORT=${CELERY_REDIS_PORT}
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
- CURRENT_HOST=${CURRENT_HOST}
- TESTRAIL_URL=${TESTRAIL_URL}
- SESSION_COOKIE_SECURE=${SESSION_COOKIE_SECURE}
- CSRF_COOKIE_SECURE=${CSRF_COOKIE_SECURE}
- DEBUG=${DEBUG}
command: sh -c "celery -A testrail_import_app worker -l info --detach && ./wait-for testrail-db-service:3306 -- python manage.py runserver 0.0.0.0:8000"
testrail-channel-redis-service:
image: 'redis:alpine'
restart: always
testrail-celery-redis-service:
image: 'redis:alpine'
restart: always
testrail-db-service:
image: mysql/mysql-server
restart: always
environment:
- MYSQL_DATABASE=${MYSQL_DB_NAME}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- .dbdata:/var/lib/mysql