-
Notifications
You must be signed in to change notification settings - Fork 4
/
gh-docker-compose.yml
66 lines (63 loc) · 1.89 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
57
58
59
60
61
62
63
64
65
66
version: '3.2'
services:
db:
image: postgis/postgis:13-3.1-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: deep
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:latest
healthcheck:
test: ["CMD-SHELL", "redis-cli ping"]
interval: 10s
timeout: 5s
retries: 5
server:
image: $DOCKER_IMAGE_SERVER
environment:
CI: "true"
# https://github.com/pytest-dev/pytest/issues/7443
PYTEST_ADDOPTS: "--color=yes"
DJANGO_DEBUG: "true"
DEEP_ENVIRONMENT: development
DJANGO_SECRET_KEY: "XXXXXXXXXXXXXXXXXXXXXXXXXX"
DEEP_FRONTEND_HOST: localhost:3000
DEEP_FRONTEND_ARY_HOST: localhost:3001
DEEP_BACKEND_HOST: localhost:8000
DJANGO_ALLOWED_HOST: localhost
SESSION_COOKIE_DOMAIN: localhost
CSRF_COOKIE_DOMAIN: localhost
EMAIL_FROM: [email protected]
# From db.environment
DATABASE_NAME: deep
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_PORT: 5432
DATABASE_HOST: db
# From redis
CELERY_REDIS_URL: redis://redis:6379/0
DJANGO_CACHE_REDIS_URL: redis://redis:6379/2
TEST_DJANGO_CACHE_REDIS_URL: redis://redis:6379/12
# HID
HID_CLIENT_ID: deep-local
HID_CLIENT_REDIRECT_URL: http://localhost:3000/login/
HID_AUTH_URI: https://api2.dev.humanitarian.id
# DEEPL Service
DEEPL_SERVICE_DOMAIN: http://extractor:8001
DEEPL_SERVICE_CALLBACK_DOMAIN: http://web:8000
# DEEPL Server
DEEPL_SERVER_TOKEN: dummy-deepl-server-token
DEEPL_SERVER_DOMAIN: http://extractor:8001
DEEPL_SERVER_CALLBACK_DOMAIN: http://web:8000
volumes:
- ./coverage/:/code/coverage/
- ./ci-share/:/ci-share/
depends_on:
- db
- redis