-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose-dev.yml
81 lines (74 loc) · 2.05 KB
/
docker-compose-dev.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.3'
services:
cueo-nginx:
container_name: "cueo-nginx"
image: nginx:1.17
volumes:
- ./ui/nginx-dev.conf.template:/etc/nginx/conf.d/nginx-dev.conf.template
- ./ui/nginx-entrypoint.sh:/etc/nginx/conf.d/nginx-entrypoint.sh
command:
bash -c "./etc/nginx/conf.d/nginx-entrypoint.sh && nginx -g 'daemon off;'"
environment:
ENVIRONMENT:
NGINX_API_URL:
NGINX_ALERT_API_URL:
NGINX_UI_URL:
network_mode: "host"
cueo-backend:
build:
context: api
dockerfile: Dockerfile
volumes:
- ./api:/code:rw
command:
bash -c "chmod +x /code/start_server_new.sh && /code/start_server_new.sh"
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}
DETECTION_SERVICE_PLATFORM:
AWS_LAMBDA_URL:
network_mode: "host"
cueo-alerts:
build:
context: alerts-api
dockerfile: Dockerfile
volumes:
- ./alerts-api:/code:rw
network_mode: "host"
cueo-frontend:
build:
context: ui
dockerfile: Dockerfile.dev
stdin_open: true
volumes:
- ./ui/src:/app/src:rw
network_mode: "host"
cueo-postgresql:
image: postgres:13
environment:
- PGDATA=/pg_data
- POSTGRES_DB=cue_observe
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- pgdata:/pg_data
network_mode: "host"
cueo-redis:
image: redis
network_mode: "host"
volumes:
pgdata:
networks:
backend:
driver: bridge