Manifests/corum-fk/corumfk.yml
kube-master@emrekirman.com 29d389d444 ...
2026-07-02 11:16:42 +00:00

142 lines
4.4 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8'
services:
corum-fk-landing:
image: ghcr.io/emrekirman/corum-fk-landing:latest
networks:
- traefik-public
- corum-fk-network
deploy:
replicas: 2
placement:
constraints:
- node.labels.platform == dev
restart_policy:
condition: on-failure
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.http.routers.cfklanding.rule=Host(`corum.emrekirman.com`)
- traefik.http.routers.cfklanding.entrypoints=websecure
- traefik.http.routers.cfklanding.tls.certresolver=myresolver
- traefik.http.services.cfklanding.loadbalancer.server.port=3000
- traefik.http.routers.cfklanding.service=cfklanding
corum-fk-agent:
image: ghcr.io/emrekirman/corum-fk-agent:latest
networks:
- corum-fk-network
- traefik-public
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.labels.platform == dev
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.http.routers.cfkagent.rule=Host(`corumagent.emrekirman.com`)
- traefik.http.routers.cfkagent.entrypoints=websecure
- traefik.http.routers.cfkagent.tls.certresolver=myresolver
- traefik.http.services.cfkagent.loadbalancer.server.port=3001
- traefik.http.routers.cfkagent.service=cfkagent
corum-fk-redis:
image: redis:7.2
command: ["redis-server", "--requirepass", "98836", "--appendonly", "yes"]
networks:
- corum-fk-network
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.labels.platform == dev
# --- NEW: PostgreSQL ---
corum-fk-postgres:
image: postgres:15
environment:
POSTGRES_USER: strapi
POSTGRES_PASSWORD: 98836 # değiştir
POSTGRES_DB: strapi
volumes:
- corum-fk-pg-data:/var/lib/postgresql/data
networks:
- corum-fk-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U strapi -d strapi"]
interval: 10s
timeout: 5s
retries: 10
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.labels.platform == dev
# --- NEW: Strapi ---
corum-fk-cms:
image: ghcr.io/emrekirman/corum-fk-cms:latest
environment:
NODE_ENV: production
# App
PORT: 1337
HOST: 0.0.0.0
URL: https://corumadmin.emrekirman.com # Strapi'nin public URL'i
# Secrets (örnek değerler değiştirin)
APP_KEYS: "WRxkPQhgXqEjAzWLkL9yog==,FpS2Gg8lEb0GxZ3tQ/Hvmg==,GmvGMto4RsuQBIZspiTw8A==,rGuTufvILVv1VDNptw2wbA=="
API_TOKEN_SALT: "RTCb/edPuv9u/wENFNhA/Q=="
ADMIN_JWT_SECRET: "IA8hDF3ynrGdwApm75G/fA=="
JWT_SECRET: "cw5em010OuItllNrh/AJpA=="
# Database (PostgreSQL)
DATABASE_CLIENT: postgres
DATABASE_HOST: corum-fk-postgres
DATABASE_PORT: 5432
DATABASE_NAME: strapi
DATABASE_USERNAME: strapi
DATABASE_PASSWORD: 98836
DATABASE_SSL: "false"
PUBLIC_URL: https://corumadmin.emrekirman.com
STRAPI_ADMIN_BACKEND_URL: https://corumadmin.emrekirman.com
depends_on:
- corum-fk-postgres
volumes:
- corum-fk-cms-uploads:/public/uploads
networks:
- traefik-public
- corum-fk-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:1337/"]
interval: 30s
timeout: 5s
retries: 3
deploy:
replicas: 2
restart_policy:
condition: on-failure
placement:
constraints:
- node.labels.platform == dev
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
# Admin paneli ve Strapi'nin ihtiyaç duyduğu backend path'leri tek servise yönlendirilir.
- traefik.http.routers.cfkcms.rule=Host(`corumadmin.emrekirman.com`)
- traefik.http.routers.cfkcms.entrypoints=websecure
- traefik.http.routers.cfkcms.tls.certresolver=myresolver
- traefik.http.services.cfkcms.loadbalancer.server.port=1337
- traefik.http.routers.cfkcms.service=cfkcms
networks:
traefik-public:
external: true
corum-fk-network:
volumes:
corum-fk-pg-data:
corum-fk-strapi-uploads:
corum-fk-cms-uploads: