-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
98 lines (90 loc) · 2.94 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# This configuration aims at being a good setup
# for doing development of the frontend + backend in combination.
version: "3.6"
services:
frontend:
build:
context: .
dockerfile: frontend-dev.Dockerfile
ports:
- 8080:8080
volumes:
- ./frontend/public:/usr/src/app/frontend/public
- ./frontend/src:/usr/src/app/frontend/src
- ./frontend/theme:/usr/src/app/frontend/theme
- ./frontend/index.html:/usr/src/app/frontend/index.html
backend-primary:
build:
context: .
dockerfile: ./backend_py/primary/Dockerfile
ports:
- 5000:5000
- 5678:5678
environment:
- UVICORN_PORT=5000
- UVICORN_RELOAD=true
- WEBVIZ_CLIENT_SECRET
- WEBVIZ_SMDA_RESOURCE_SCOPE
- WEBVIZ_SMDA_SUBSCRIPTION_KEY
- WEBVIZ_ENTERPRISE_SUBSCRIPTION_KEY
- WEBVIZ_SSDL_RESOURCE_SCOPE
- WEBVIZ_SUMO_ENV
- WEBVIZ_VDS_HOST_ADDRESS
- APPLICATIONINSIGHTS_CONNECTION_STRING
- OTEL_SERVICE_NAME=primary-backend
- OTEL_RESOURCE_ATTRIBUTES=service.namespace=local, service.version=dummy0.1.2
- CODESPACE_NAME # Automatically set env. variable by GitHub codespace
volumes:
- ./backend_py/primary/primary:/home/appuser/backend_py/primary/primary
- ./backend_py/libs:/home/appuser/backend_py/libs
command:
[
"sh",
"-c",
"pip install debugpy && python -m debugpy --listen 0.0.0.0:5678 -m uvicorn --proxy-headers --host=0.0.0.0 primary.main:app",
]
surface-query:
build:
context: .
dockerfile: ./backend_go/surface-query-dev.Dockerfile
ports:
- 5001:5001
volumes:
- ./backend_go/surface_query:/home/appuser/backend_go/surface_query
user-mock:
build:
context: .
dockerfile: ./backend_py/user_mock/Dockerfile
ports:
- 8001:8001
environment:
- UVICORN_PORT=8001
- UVICORN_RELOAD=true
volumes:
- ./backend_py/user_mock/user_mock:/home/appuser/backend_py/user_mock/user_mock
user-grid3d-ri:
build:
context: .
dockerfile: ./backend_py/user_grid3d_ri/Dockerfile
ports:
- 8002:8002
environment:
- UVICORN_PORT=8002
- UVICORN_RELOAD=true
volumes:
- ./backend_py/user_grid3d_ri/user_grid3d_ri:/home/appuser/backend_py/user_grid3d_ri/user_grid3d_ri
- ./backend_py/libs:/home/appuser/backend_py/libs
redis-user-session:
image: bitnami/redis:6.2.10@sha256:bd42fcdab5959ce2b21b6ea8410d4b3ee87ecb2e320260326ec731ecfcffbd0e
expose:
- 6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
redis-cache:
image: bitnami/redis:6.2.10@sha256:bd42fcdab5959ce2b21b6ea8410d4b3ee87ecb2e320260326ec731ecfcffbd0e
expose:
- 6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
# https://redis.io/docs/management/config/#configuring-redis-as-a-cache
- REDIS_EXTRA_FLAGS=--maxmemory 1gb --maxmemory-policy allkeys-lru --save '' --appendonly no --loglevel notice