chore(roles/coolify): disabled socketi and misc improvements
This commit is contained in:
@@ -14,7 +14,7 @@ services:
|
|||||||
- /data/coolify/backups:/var/www/html/storage/app/backups
|
- /data/coolify/backups:/var/www/html/storage/app/backups
|
||||||
environment:
|
environment:
|
||||||
- APP_ENV=${APP_ENV:-production}
|
- 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_CONTROL=${PHP_FPM_PM_CONTROL:-dynamic}
|
||||||
- PHP_FPM_PM_START_SERVERS=${PHP_FPM_PM_START_SERVERS:-1}
|
- PHP_FPM_PM_START_SERVERS=${PHP_FPM_PM_START_SERVERS:-1}
|
||||||
- PHP_FPM_PM_MIN_SPARE_SERVERS=${PHP_FPM_PM_MIN_SPARE_SERVERS:-1}
|
- PHP_FPM_PM_MIN_SPARE_SERVERS=${PHP_FPM_PM_MIN_SPARE_SERVERS:-1}
|
||||||
@@ -50,6 +50,7 @@ services:
|
|||||||
interval: 5s
|
interval: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
|
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
|
||||||
environment:
|
environment:
|
||||||
@@ -62,36 +63,36 @@ services:
|
|||||||
retries: 10
|
retries: 10
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
|
|
||||||
soketi:
|
# soketi:
|
||||||
image: "${REGISTRY_URL:-ghcr.io}/coollabsio/coolify-realtime:1.0.10"
|
# image: "${REGISTRY_URL:-ghcr.io}/coollabsio/coolify-realtime:1.0.10"
|
||||||
ports:
|
# ports:
|
||||||
- name: soketi
|
# - name: soketi
|
||||||
target: 6001
|
# target: 6001
|
||||||
published: ${SOKETI_PORT:-6001}
|
# published: ${SOKETI_PORT:-6001}
|
||||||
host_ip: 127.0.0.1
|
# host_ip: 127.0.0.1
|
||||||
protocol: tcp
|
# protocol: tcp
|
||||||
app_protocol: http
|
# app_protocol: http
|
||||||
- name: terminal
|
# - name: terminal
|
||||||
target: 6002
|
# target: 6002
|
||||||
published: 6002
|
# published: 6002
|
||||||
host_ip: 127.0.0.1
|
# host_ip: 127.0.0.1
|
||||||
protocol: tcp
|
# protocol: tcp
|
||||||
app_protocol: http
|
# app_protocol: http
|
||||||
volumes:
|
# volumes:
|
||||||
- /data/coolify/ssh:/var/www/html/storage/app/ssh
|
# - /data/coolify/ssh:/var/www/html/storage/app/ssh
|
||||||
environment:
|
# environment:
|
||||||
APP_NAME: "${APP_NAME:-Coolify}"
|
# APP_NAME: "${APP_NAME:-Coolify}"
|
||||||
SOKETI_DEBUG: "${SOKETI_DEBUG:-false}"
|
# SOKETI_DEBUG: "${SOKETI_DEBUG:-false}"
|
||||||
SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID}"
|
# SOKETI_DEFAULT_APP_ID: "${PUSHER_APP_ID}"
|
||||||
SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY}"
|
# SOKETI_DEFAULT_APP_KEY: "${PUSHER_APP_KEY}"
|
||||||
SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET}"
|
# SOKETI_DEFAULT_APP_SECRET: "${PUSHER_APP_SECRET}"
|
||||||
healthcheck:
|
# healthcheck:
|
||||||
test:
|
# test:
|
||||||
- CMD-SHELL
|
# - CMD-SHELL
|
||||||
- wget -qO- http://127.0.0.1:6001/ready && wget -qO- http://127.0.0.1:6002/ready || exit 1
|
# - wget -qO- http://127.0.0.1:6001/ready && wget -qO- http://127.0.0.1:6002/ready || exit 1
|
||||||
interval: 5s
|
# interval: 5s
|
||||||
retries: 10
|
# retries: 10
|
||||||
timeout: 2s
|
# timeout: 2s
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
coolify-db:
|
coolify-db:
|
||||||
|
|||||||
@@ -13,27 +13,31 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
soketi:
|
# soketi:
|
||||||
condition: service_healthy
|
# condition: service_healthy
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
container_name: coolify-db
|
container_name: coolify-db
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- coolify
|
- coolify
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:8-alpine
|
image: redis:8-alpine
|
||||||
container_name: coolify-redis
|
container_name: coolify-redis
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- coolify
|
- coolify
|
||||||
soketi:
|
|
||||||
container_name: coolify-realtime
|
# soketi:
|
||||||
extra_hosts:
|
# container_name: coolify-realtime
|
||||||
- host.docker.internal:host-gateway
|
# extra_hosts:
|
||||||
restart: always
|
# - host.docker.internal:host-gateway
|
||||||
networks:
|
# restart: always
|
||||||
- coolify
|
# networks:
|
||||||
|
# - coolify
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
coolify:
|
coolify:
|
||||||
name: coolify
|
name: coolify
|
||||||
|
|||||||
Reference in New Issue
Block a user