-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (50 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
51 lines (50 loc) · 1.53 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
version: "3.9"
services:
fastapi:
build:
context: .
target: runtime
command: uvicorn examples.fastapi_demo.app:app --host 0.0.0.0 --port 8000 --log-config examples/logging/uvicorn_logging_json.yml
environment: [RBACX_LOG_JSON=1]
ports: ["8000:8000"]
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:8000/health || exit 1"]
interval: 10s
timeout: 3s
retries: 5
litestar:
build:
context: .
target: runtime
command: uvicorn examples.litestar_demo.app:app --host 0.0.0.0 --port 8001 --log-config examples/logging/uvicorn_logging_json.yml
environment: [RBACX_LOG_JSON=1]
ports: ["8001:8001"]
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:8001/health || exit 1"]
interval: 10s
timeout: 3s
retries: 5
flask:
build:
context: .
target: runtime
command: python -m examples.flask_demo.app
environment: [PORT=8002, RBACX_LOG_JSON=1]
ports: ["8002:8002"]
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:8002/health || exit 1"]
interval: 10s
timeout: 3s
retries: 5
django:
build:
context: .
target: runtime
command: bash -lc "python examples/django_demo/manage.py migrate && python examples/django_demo/manage.py runserver 0.0.0.0:8003"
environment: [RBACX_LOG_JSON=1]
ports: ["8003:8003"]
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:8003/ || exit 1"]
interval: 10s
timeout: 3s
retries: 5