|
1 | | -services: |
| 1 | +services: |
2 | 2 | hybrid-pki-api: |
3 | 3 | build: |
4 | 4 | context: . |
5 | 5 | dockerfile: Dockerfile |
6 | 6 | container_name: hybrid-pki-api |
7 | 7 | ports: |
8 | | - - "8000:8000" |
| 8 | + - "127.0.0.1:8000:8000" |
9 | 9 | volumes: |
10 | 10 | - ./certs:/app/certs |
11 | 11 | - ./logs:/app/logs |
12 | | - - ./docs:/app/docs |
| 12 | + - ./docs:/app/docs:ro |
13 | 13 | environment: |
14 | | - APP_NAME: "Hybrid-PKI-Lab" |
15 | 14 | APP_ENV: "development" |
16 | | - API_HOST: "0.0.0.0" |
17 | | - API_PORT: "8000" |
18 | | - PKI_STORAGE_PATH: "/app/certs" |
19 | | - LOG_LEVEL: "INFO" |
20 | 15 | HYBRID_PKI_DISABLE_OQS: "1" |
21 | | - command: uvicorn hybrid_pki.api.main:app --host 0.0.0.0 --port 8000 --reload |
| 16 | + HYBRID_PKI_ENABLE_MUTATIONS: "${HYBRID_PKI_ENABLE_MUTATIONS:-0}" |
| 17 | + HYBRID_PKI_API_KEY: "${HYBRID_PKI_API_KEY:-}" |
| 18 | + command: uvicorn hybrid_pki.api.main:app --host 0.0.0.0 --port 8000 |
22 | 19 |
|
23 | 20 | hybrid-pki-tests: |
24 | 21 | build: |
25 | 22 | context: . |
26 | 23 | dockerfile: Dockerfile |
27 | | - container_name: hybrid-pki-tests |
28 | 24 | volumes: |
29 | 25 | - .:/app |
30 | 26 | environment: |
31 | 27 | APP_ENV: "test" |
32 | | - PKI_STORAGE_PATH: "/app/certs" |
33 | 28 | HYBRID_PKI_DISABLE_OQS: "1" |
| 29 | + HYBRID_PKI_ENABLE_MUTATIONS: "1" |
34 | 30 | command: pytest -v --cov=hybrid_pki --cov-report=term-missing |
35 | | - profiles: |
36 | | - - test |
37 | | - |
38 | | - hybrid-pki-shell: |
39 | | - build: |
40 | | - context: . |
41 | | - dockerfile: Dockerfile |
42 | | - container_name: hybrid-pki-shell |
43 | | - volumes: |
44 | | - - .:/app |
45 | | - environment: |
46 | | - APP_ENV: "development" |
47 | | - PKI_STORAGE_PATH: "/app/certs" |
48 | | - HYBRID_PKI_DISABLE_OQS: "1" |
49 | | - entrypoint: /bin/bash |
50 | | - profiles: |
51 | | - - shell |
| 31 | + profiles: [test] |
52 | 32 |
|
53 | 33 | hybrid-pki-pqc: |
54 | 34 | build: |
55 | 35 | context: . |
56 | 36 | dockerfile: Dockerfile.pqc |
57 | 37 | container_name: hybrid-pki-pqc |
58 | 38 | ports: |
59 | | - - "8001:8000" |
| 39 | + - "127.0.0.1:8001:8000" |
60 | 40 | volumes: |
61 | 41 | - ./certs:/app/certs |
62 | 42 | - ./logs:/app/logs |
63 | 43 | - ./benchmarks/results:/app/benchmarks/results |
64 | 44 | environment: |
65 | | - APP_NAME: "Hybrid-PKI-Lab" |
66 | 45 | APP_ENV: "pqc" |
67 | | - API_HOST: "0.0.0.0" |
68 | | - API_PORT: "8000" |
69 | | - PKI_STORAGE_PATH: "/app/certs" |
70 | | - LOG_LEVEL: "INFO" |
71 | 46 | HYBRID_PKI_DISABLE_OQS: "0" |
| 47 | + HYBRID_PKI_ENABLE_MUTATIONS: "${HYBRID_PKI_ENABLE_MUTATIONS:-0}" |
| 48 | + HYBRID_PKI_API_KEY: "${HYBRID_PKI_API_KEY:-}" |
72 | 49 | command: uvicorn hybrid_pki.api.main:app --host 0.0.0.0 --port 8000 |
73 | | - profiles: |
74 | | - - pqc |
| 50 | + profiles: [pqc] |
75 | 51 |
|
76 | 52 | hybrid-pki-pqc-tests: |
77 | 53 | build: |
78 | 54 | context: . |
79 | 55 | dockerfile: Dockerfile.pqc |
80 | | - container_name: hybrid-pki-pqc-tests |
81 | 56 | volumes: |
82 | 57 | - .:/app |
83 | 58 | environment: |
84 | 59 | APP_ENV: "pqc-test" |
85 | | - PKI_STORAGE_PATH: "/app/certs" |
86 | 60 | HYBRID_PKI_DISABLE_OQS: "0" |
| 61 | + HYBRID_PKI_ENABLE_MUTATIONS: "1" |
87 | 62 | command: pytest -v |
88 | | - profiles: |
89 | | - - pqc-test |
| 63 | + profiles: [pqc-test] |
0 commit comments