'corum-fk/corumfk.yml' güncelle
This commit is contained in:
parent
18e2b026b0
commit
144f0f2620
|
|
@ -19,6 +19,7 @@ services:
|
||||||
- traefik.http.routers.corum-fk-landing.tls.certresolver=myresolver
|
- traefik.http.routers.corum-fk-landing.tls.certresolver=myresolver
|
||||||
- traefik.http.services.corum-fk-landing.loadbalancer.server.port=3000
|
- traefik.http.services.corum-fk-landing.loadbalancer.server.port=3000
|
||||||
- traefik.http.routers.corum-fk-landing.service=corum-fk-landing
|
- traefik.http.routers.corum-fk-landing.service=corum-fk-landing
|
||||||
|
|
||||||
corum-fk-agent:
|
corum-fk-agent:
|
||||||
image: ghcr.io/emrekirman/corum-fk-agent:latest
|
image: ghcr.io/emrekirman/corum-fk-agent:latest
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -30,6 +31,7 @@ services:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.labels.platform == dev
|
- node.labels.platform == dev
|
||||||
|
|
||||||
corum-fk-redis:
|
corum-fk-redis:
|
||||||
image: redis:7.2
|
image: redis:7.2
|
||||||
command: ["redis-server", "--requirepass", "98836", "--appendonly", "yes"]
|
command: ["redis-server", "--requirepass", "98836", "--appendonly", "yes"]
|
||||||
|
|
@ -43,7 +45,84 @@ services:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
- node.labels.platform == dev
|
- 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.xyz # 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.xyz
|
||||||
|
STRAPI_ADMIN_BACKEND_URL: https://corumadmin.emrekirman.xyz
|
||||||
|
depends_on:
|
||||||
|
- corum-fk-postgres
|
||||||
|
volumes:
|
||||||
|
- corum-fk-cms-uploads:/public/uploads
|
||||||
|
networks:
|
||||||
|
- traefik-public
|
||||||
|
- corum-fk-network
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.labels.platform == dev
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
# Admin paneli ve Strapi'nin ihtiyaç duyduğu backend path'leri tek servise yönlendirilir.
|
||||||
|
- traefik.http.routers.corum-fk-cms.rule=Host(`corumadmin.emrekirman.xyz`)
|
||||||
|
- traefik.http.routers.corum-fk-cms.entrypoints=websecure
|
||||||
|
- traefik.http.routers.corum-fk-cms.tls.certresolver=myresolver
|
||||||
|
- traefik.http.services.corum-fk-cms.loadbalancer.server.port=1337
|
||||||
|
- traefik.http.routers.corum-fk-cms.service=corum-fk-cms
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik-public:
|
traefik-public:
|
||||||
external: true
|
external: true
|
||||||
corum-fk-network:
|
corum-fk-network:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
corum-fk-pg-data:
|
||||||
|
corum-fk-strapi-uploads:
|
||||||
|
corum-fk-cms-uploads:
|
||||||
Loading…
Reference in New Issue
Block a user