-
Notifications
You must be signed in to change notification settings - Fork 0
/
gh-docker-compose.yml
56 lines (53 loc) · 1.46 KB
/
gh-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
46
47
48
49
50
51
52
53
54
55
56
version: '3.2'
services:
db:
image: postgis/postgis:15-master
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: qb
redis:
image: redis:latest
healthcheck:
test: ["CMD-SHELL", "redis-cli ping"]
interval: 10s
timeout: 5s
retries: 5
backend:
image: $DOCKER_IMAGE_BACKEND
environment:
CI: "true"
# https://github.com/pytest-dev/pytest/issues/7443
PYTEST_ADDOPTS: "--color=yes"
APP_ENVIRONMENT: test
APP_TYPE: web
DJANGO_SECRET_KEY: "XXXXXXXXXXXXXXXXXXXXXXXXXX"
# To overwrite this values. set the values in .env
DJANGO_DEBUG: "true"
APP_DOMAIN: localhost:8311
APP_HTTP_PROTOCOL: http
APP_FRONTEND_HOST: localhost:3111
SESSION_COOKIE_DOMAIN: localhost
CSRF_COOKIE_DOMAIN: localhost
DJANGO_ALLOWED_HOST: '*'
# Database
DJANGO_DB_NAME: qb
DJANGO_DB_USER: postgres
DJANGO_DB_PASSWORD: postgres
DJANGO_DB_PORT: 5432
DJANGO_DB_HOST: db
DJANGO_CORS_ORIGIN_REGEX_WHITELIST: localhost
# Redis
CELERY_REDIS_URL: redis://redis:6379/1
DJANGO_CACHE_REDIS_URL: redis://redis:6379/2
TEST_DJANGO_CACHE_REDIS_URL: redis://redis:6379/12
# EMAIL
EMAIL_FROM: [email protected]
# Enketo
ENKETO_DOMAIN: http://localhost:8005
volumes:
- ./coverage/:/code/coverage/
- ./ci-share/:/ci-share/
depends_on:
- db
- redis