diff --git a/roles/coolify/templates/docker-compose.prod.yml.j2 b/roles/coolify/templates/docker-compose.prod.yml.j2 index b28ee66..67db9b6 100644 --- a/roles/coolify/templates/docker-compose.prod.yml.j2 +++ b/roles/coolify/templates/docker-compose.prod.yml.j2 @@ -14,7 +14,7 @@ services: - /data/coolify/backups:/var/www/html/storage/app/backups environment: - APP_ENV=${APP_ENV:-production} - - PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT:-256M} + - PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT:-128M} - PHP_FPM_PM_CONTROL=${PHP_FPM_PM_CONTROL:-dynamic} - PHP_FPM_PM_START_SERVERS=${PHP_FPM_PM_START_SERVERS:-1} - PHP_FPM_PM_MIN_SPARE_SERVERS=${PHP_FPM_PM_MIN_SPARE_SERVERS:-1} @@ -50,6 +50,7 @@ services: interval: 5s retries: 10 timeout: 2s + redis: command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD} environment: @@ -62,36 +63,36 @@ services: retries: 10 timeout: 2s - soketi: - image: "${REGISTRY_URL:-ghcr.io}/coollabsio/coolify-realtime:1.0.10" - ports: - - name: soketi - target: 6001 - published: ${SOKETI_PORT:-6001} - host_ip: 127.0.0.1 - protocol: tcp - app_protocol: http - - name: terminal - target: 6002 - published: 6002 - host_ip: 127.0.0.1 - protocol: tcp - app_protocol: http - volumes: - - /data/coolify/ssh:/var/www/html/storage/app/ssh - environment: - APP_NAME: "${APP_NAME:-Coolify}" - SOKETI_DEBUG: "${SOKETI_DEBUG:-false}" - SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID}" - SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY}" - SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET}" - healthcheck: - test: - - CMD-SHELL - - wget -qO- http://127.0.0.1:6001/ready && wget -qO- http://127.0.0.1:6002/ready || exit 1 - interval: 5s - retries: 10 - timeout: 2s + # soketi: + # image: "${REGISTRY_URL:-ghcr.io}/coollabsio/coolify-realtime:1.0.10" + # ports: + # - name: soketi + # target: 6001 + # published: ${SOKETI_PORT:-6001} + # host_ip: 127.0.0.1 + # protocol: tcp + # app_protocol: http + # - name: terminal + # target: 6002 + # published: 6002 + # host_ip: 127.0.0.1 + # protocol: tcp + # app_protocol: http + # volumes: + # - /data/coolify/ssh:/var/www/html/storage/app/ssh + # environment: + # APP_NAME: "${APP_NAME:-Coolify}" + # SOKETI_DEBUG: "${SOKETI_DEBUG:-false}" + # SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID}" + # SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY}" + # SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET}" + # healthcheck: + # test: + # - CMD-SHELL + # - wget -qO- http://127.0.0.1:6001/ready && wget -qO- http://127.0.0.1:6002/ready || exit 1 + # interval: 5s + # retries: 10 + # timeout: 2s volumes: coolify-db: diff --git a/roles/coolify/templates/docker-compose.yml.j2 b/roles/coolify/templates/docker-compose.yml.j2 index bca65ff..842877c 100644 --- a/roles/coolify/templates/docker-compose.yml.j2 +++ b/roles/coolify/templates/docker-compose.yml.j2 @@ -13,27 +13,31 @@ services: condition: service_healthy redis: condition: service_healthy - soketi: - condition: service_healthy + # soketi: + # condition: service_healthy + postgres: image: postgres:15-alpine container_name: coolify-db restart: always networks: - coolify + redis: image: redis:8-alpine container_name: coolify-redis restart: always networks: - coolify - soketi: - container_name: coolify-realtime - extra_hosts: - - host.docker.internal:host-gateway - restart: always - networks: - - coolify + + # soketi: + # container_name: coolify-realtime + # extra_hosts: + # - host.docker.internal:host-gateway + # restart: always + # networks: + # - coolify + networks: coolify: name: coolify