Update coolify image and environment variables

This commit is contained in:
Andras Bacsai 2024-01-26 09:57:59 +01:00
parent 788d1711db
commit dc0b0980a9

View File

@ -8,41 +8,37 @@ services:
- //var/run/docker.sock://var/run/docker.sock - //var/run/docker.sock://var/run/docker.sock
- ./:/data/coolify - ./:/data/coolify
coolify: coolify:
image: "ghcr.io/coollabsio/coolify:${LATEST_IMAGE:-4.0.0-beta.199}" image: "ghcr.io/coollabsio/coolify:next"
container_name: coolify container_name: coolify
restart: always restart: always
working_dir: /var/www/html working_dir: /var/www/html
extra_hosts: extra_hosts:
- 'host.docker.internal:host-gateway' - 'host.docker.internal:host-gateway'
volumes: volumes:
- type: bind
source: ./.env
target: /var/www/html/.env
read_only: true
- ./ssh:/var/www/html/storage/app/ssh - ./ssh:/var/www/html/storage/app/ssh
- ./applications:/var/www/html/storage/app/applications - ./applications:/var/www/html/storage/app/applications
- ./databases:/var/www/html/storage/app/databases - ./databases:/var/www/html/storage/app/databases
- ./services:/var/www/html/storage/app/services - ./services:/var/www/html/storage/app/services
- ./backups:/var/www/html/storage/app/backups - ./backups:/var/www/html/storage/app/backups
environment: environment:
- IS_WINDOWS_DOCKER_DESKTOP=true - APP_ID=${APP_ID:-coolify-windows-desktop}
- APP_ID
- APP_ENV=production - APP_ENV=production
- APP_NAME - APP_NAME=${APP_NAME:-Coolify}
- APP_KEY - APP_KEY=${APP_KEY:-base64:ssTlCmrIE/q7whnKMvT6DwURikg69COzGsAwFVROm80=}
- DB_PASSWORD - DB_PASSWORD=${DB_PASSWORD:-coolify}
- REDIS_PASSWORD - REDIS_PASSWORD=${REDIS_PASSWORD:-coolify}
- SSL_MODE=off - SSL_MODE=off
- PHP_PM_CONTROL=dynamic - PHP_PM_CONTROL=dynamic
- PHP_PM_START_SERVERS=1 - PHP_PM_START_SERVERS=1
- PHP_PM_MIN_SPARE_SERVERS=1 - PHP_PM_MIN_SPARE_SERVERS=1
- PHP_PM_MAX_SPARE_SERVERS=10 - PHP_PM_MAX_SPARE_SERVERS=10
- PUSHER_APP_ID - PUSHER_APP_ID=${PUSHER_APP_ID:-coolify}
- PUSHER_APP_KEY - PUSHER_APP_KEY=${PUSHER_APP_KEY:-coolify}
- PUSHER_APP_SECRET - PUSHER_APP_SECRET=${PUSHER_APP_SECRET:-coolify}
- AUTOUPDATE=true - AUTOUPDATE=true
- SELF_HOSTED=true - SELF_HOSTED=true
- MUX_ENABLED=false - MUX_ENABLED=false
- IS_WINDOWS_DOCKER_DESKTOP=true
ports: ports:
- "${APP_PORT:-8000}:80" - "${APP_PORT:-8000}:80"
expose: expose:
@ -65,7 +61,7 @@ services:
- coolify-db:/var/lib/postgresql/data - coolify-db:/var/lib/postgresql/data
environment: environment:
POSTGRES_USER: "${DB_USERNAME:-coolify}" POSTGRES_USER: "${DB_USERNAME:-coolify}"
POSTGRES_PASSWORD: "${DB_PASSWORD}" POSTGRES_PASSWORD: "${DB_PASSWORD:-coolify}"
POSTGRES_DB: "${DB_DATABASE:-coolify}" POSTGRES_DB: "${DB_DATABASE:-coolify}"
healthcheck: healthcheck:
test: test:
@ -84,7 +80,7 @@ services:
restart: always restart: always
command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD} command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD}
environment: environment:
REDIS_PASSWORD: "${REDIS_PASSWORD}" REDIS_PASSWORD: "${REDIS_PASSWORD:-coolify}"
volumes: volumes:
- coolify-redis:/data - coolify-redis:/data
healthcheck: healthcheck: