-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
65 lines (62 loc) · 1.91 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
65 lines (62 loc) · 1.91 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
services:
bcf-server:
build:
context: .
dockerfile: Dockerfile
container_name: bcf-server
restart: always
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgres://bcf:${POSTGRES_PASSWORD}@bcf-postgresql:5432/bcf_platform
HOST: "0.0.0.0"
PORT: "3000"
RUST_LOG: "bcf_server=info,tower_http=info,openaec_cloud=info"
STORAGE_PATH: /app/data/snapshots
AUTH_ENABLED: "${AUTH_ENABLED:-false}"
OIDC_ISSUER_URL: "${OIDC_ISSUER_URL:-}"
OIDC_CLIENT_ID: "${OIDC_CLIENT_ID:-}"
OIDC_CLIENT_SECRET: "${OIDC_CLIENT_SECRET:-}"
OIDC_REDIRECT_URI: "${OIDC_REDIRECT_URI:-}"
JWT_SECRET: "${JWT_SECRET:-}"
FRONTEND_URL: "${FRONTEND_URL:-https://bcf.open-aec.com}"
# Cloud storage — multi-tenant (preferred)
TENANTS_CONFIG: "${TENANTS_CONFIG:-/etc/openaec/tenants.json}"
DEFAULT_TENANT: "${DEFAULT_TENANT:-}"
NC_SERVICE_PASS_3BM: "${NC_SERVICE_PASS_3BM:-}"
# Cloud storage — legacy single-tenant (fallback)
NEXTCLOUD_URL: "${NEXTCLOUD_URL:-}"
NEXTCLOUD_SERVICE_USER: "${NEXTCLOUD_SERVICE_USER:-}"
NEXTCLOUD_SERVICE_PASS: "${NEXTCLOUD_SERVICE_PASS:-}"
volumes:
- snapshot_data:/app/data/snapshots
- /opt/openaec/tenants.json:/etc/openaec/tenants.json:ro
networks:
- bcf-net
- openaec_platform
postgres:
image: postgres:16-alpine
container_name: bcf-postgresql
restart: always
environment:
POSTGRES_DB: bcf_platform
POSTGRES_USER: bcf
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bcf -d bcf_platform"]
interval: 5s
timeout: 5s
retries: 5
networks:
- bcf-net
volumes:
pgdata:
snapshot_data:
networks:
bcf-net:
driver: bridge
openaec_platform:
external: true