-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yaml
84 lines (79 loc) · 2.05 KB
/
docker-compose.yaml
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
version: "3.9"
services:
start_applications:
image: jwilder/dockerize
security_opt:
- no-new-privileges:true
command: >
-wait tcp://cla_backend:8000
-wait-retry-interval 10s
-timeout 180s
depends_on:
- cla_backend
- rabbitmq
- cla_backend_worker
rabbitmq:
image: rabbitmq
ports:
- '5672:5672'
db:
image: postgres:11.6-alpine
ports:
- ${DOCKER_DATABASE_PORT_MAPPING:-5433:5432}
security_opt:
- no-new-privileges:true
container_name:
cla_backend_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: cla_backend
cla_backend: &cla_backend
build:
context: .
target: ${ENVIRONMENT:-development}
ports:
- '8010:8000'
stdin_open: true
tty: true
volumes:
- .:/home/app
depends_on:
- db
container_name:
cla_backend
environment: &cla_backend_environment
ENV: local
DEBUG: "True"
SECRET_KEY: CHANGE_ME
DB_NAME: cla_backend
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: db
DB_PORT: 5432
BACKEND_ENABLED: "True"
LOAD_SEED_DATA: "True"
LOAD_TEST_DATA: "True"
LOAD_END_TO_END_FIXTURES: "True"
ADMIN_USER: cla_admin
STATIC_FILES_BACKEND: local
ADMIN_PASSWORD: cla_admin
ALLOWED_HOSTS: "*"
DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS:-cla_backend.settings.base}
CELERY_BROKER_URL: "amqp://rabbitmq"
PREVIOUS_DIVERSITY_PRIVATE_KEY: ${PREVIOUS_DIVERSITY_PRIVATE_KEY:-}
EMAIL_ORCHESTRATOR_URL: ${EMAIL_ORCHESTRATOR_URL:-}
cla_backend_worker:
<<: *cla_backend
command:
- "docker/run_worker.sh"
ports: []
depends_on:
- cla_backend
container_name:
cla_backend_worker
environment:
<<: *cla_backend_environment
DIVERSITY_PRIVATE_KEY_PATH: ${DIVERSITY_PRIVATE_KEY_PATH:-}
DIVERSITY_PUBLIC_KEY_PATH: ${DIVERSITY_PUBLIC_KEY_PATH:-}
PREVIOUS_DIVERSITY_PRIVATE_KEY: ${PREVIOUS_DIVERSITY_PRIVATE_KEY:-}