-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
59 lines (53 loc) · 1.52 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.1'
services:
cueo-backend:
build:
context: api
dockerfile: Dockerfile
environment:
ENVIRONMENT: ${ENVIRONMENT}
API_URL: ${API_URL}
ALERT_API_URL: ${ALERT_API_URL}
POSTGRES_DB_HOST: ${POSTGRES_DB_HOST}
POSTGRES_DB_USERNAME: ${POSTGRES_DB_USERNAME}
POSTGRES_DB_PASSWORD: ${POSTGRES_DB_PASSWORD}
POSTGRES_DB_SCHEMA: ${POSTGRES_DB_SCHEMA}
POSTGRES_DB_PORT: ${POSTGRES_DB_PORT}
DJANGO_SUPERUSER_USERNAME: ${DJANGO_SUPERUSER_USERNAME}
DJANGO_SUPERUSER_PASSWORD: ${DJANGO_SUPERUSER_PASSWORD}
DJANGO_SUPERUSER_EMAIL: ${DJANGO_SUPERUSER_EMAIL}
IS_AUTHENTICATION_REQUIRED: ${IS_AUTHENTICATION_REQUIRED}
CELERY_RESULT_BACKEND: ${CELERY_RESULT_BACKEND}
REDIS_BROKER_URL: ${REDIS_BROKER_URL}
DETECTION_SERVICE_PLATFORM: ${DETECTION_SERVICE_PLATFORM}
AWS_LAMBDA_URL: ${AWS_LAMBDA_URL}
volumes:
- sqliteDB:/code/db:rw
- djangoStaticFiles:/home/staticfiles:rw
cueo-alerts:
build:
context: alerts-api
dockerfile: Dockerfile
cueo-frontend:
build:
context: ui
dockerfile: Dockerfile
env_file:
- .env
depends_on:
- cueo-backend
command:
bash -c "./etc/nginx/conf.d/nginx-entrypoint.sh && nginx -g 'daemon off;'"
ports:
- "3000:3000"
links:
- "cueo-alerts"
- "cueo-backend"
- "cueo-redis"
volumes:
- djangoStaticFiles:/home/staticfiles:rw
cueo-redis:
image: redis
volumes:
sqliteDB:
djangoStaticFiles: