-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
106 lines (99 loc) · 3.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
106 lines (99 loc) · 3.11 KB
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
99
100
101
102
103
104
105
106
# This configuration aims at being a good setup
# for doing development of the frontend + backend in combination.
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
- ./docs:/usr/src/app/docs
backend-primary:
build:
context: .
dockerfile: ./backend_py/primary/Dockerfile
ports:
- 5000:5000
- 5678:5678
environment:
- UVICORN_PORT=5000
- UVICORN_RELOAD=true
- UVICORN_RELOAD_DIRS=/home/appuser/backend_py
- WEBVIZ_CLIENT_SECRET
- WEBVIZ_SMDA_SUBSCRIPTION_KEY
- WEBVIZ_ENTERPRISE_SUBSCRIPTION_KEY
- WEBVIZ_SUMO_ENV
- WEBVIZ_VDS_HOST_ADDRESS
- WEBVIZ_PSEUDONYM_HMAC_KEY
- WEBVIZ_SESSION_STORE_FERNET_KEY
- WEBVIZ_REDIS_AUTH_STORE_PASSWORD
- WEBVIZ_REDIS_CACHE_PASSWORD
- APPLICATIONINSIGHTS_CONNECTION_STRING
- 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/Dockerfile.dev
environment:
- SURFACE_QUERY_SERVER_MODE=syncserver
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
- APPLICATIONINSIGHTS_CONNECTION_STRING
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-auth-store:
build:
context: .
dockerfile: docker/redis/Dockerfile
environment:
- REDIS_REQUIREPASS=${WEBVIZ_REDIS_AUTH_STORE_PASSWORD}
expose:
- 6379
user: "999:999"
command: ["--loglevel", "notice"]
redis-cache:
build:
context: .
dockerfile: docker/redis/Dockerfile
environment:
- REDIS_REQUIREPASS=${WEBVIZ_REDIS_CACHE_PASSWORD}
expose:
- 6379
user: "999:999"
# https://redis.io/docs/latest/operate/oss_and_stack/management/config/#configuring-redis-as-a-cache
command: ["--maxmemory", "1gb", "--maxmemory-policy", "allkeys-lru", "--loglevel", "notice"]