139 lines
4.4 KiB
YAML
139 lines
4.4 KiB
YAML
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.http.routers.corum-fk-landing.rule=Host(`corum.emrekirman.xyz`)
|
||
- traefik.http.routers.corum-fk-landing.entrypoints=websecure
|
||
- traefik.http.routers.corum-fk-landing.tls.certresolver=myresolver
|
||
- 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.priority=28
|
||
|
||
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.http.routers.corum-fk-agent.rule=Host(`corumagent.emrekirman.xyz`)
|
||
- traefik.http.routers.corum-fk-agent.entrypoints=websecure
|
||
- traefik.http.routers.corum-fk-agent.tls.certresolver=myresolver
|
||
- traefik.http.services.corum-fk-agent.loadbalancer.server.port=3001
|
||
- traefik.http.routers.corum-fk-agent.service=corum-fk-agent
|
||
- traefik.http.routers.corum-fk-agent.priority=27
|
||
|
||
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.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
|
||
- traefik.http.routers.corum-fk-cms.priority=26
|
||
|
||
networks:
|
||
traefik-public:
|
||
external: true
|
||
corum-fk-network:
|
||
|
||
volumes:
|
||
corum-fk-pg-data:
|
||
corum-fk-strapi-uploads:
|
||
corum-fk-cms-uploads: |