https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
w

wooden-river-6675

11/28/2023, 3:37 PM
Copy code
apiVersion: apps/v1
kind: Deployment
metadata:
  name: growthbook-web
  namespace: dev-growthbook
  labels:
    app: growthbook-web
spec:
  replicas: 1
  selector:
    matchLabels:
      app: growthbook-web
  template:
    metadata:
      labels:
        app: growthbook-web
    spec:
      containers:
        - name: growthbook-web
          image: growthbook/growthbook:latest
          env:
            - name: APP_ORIGIN
              value: <https://example.com>
            - name: API_HOST
              value: <https://example.com/backend>
            - name: MONGODB_URI
              value: "<mongodb://root:password@growthbook-mongo:27017/growthbook>"
            - name: JWT_SECRET
              value: your_jwt_sfsdhfhdss
          ports:
            - containerPort: 3000
              name: web
            - containerPort: 3100
              name: api
---
apiVersion: v1
kind: Service
metadata:
  name: growthbook-web
  namespace: dev-growthbook
spec:
  ports:
    - name: web
      port: 3000
      targetPort: 3000
    - name: api
      port: 3100
      targetPort: 3100
  selector:
    app: growthbook-web
4 Views