From ab6c1ddc20383e13180d5c1130b1ee2ad9c9992b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 26 Jan 2024 10:16:44 +0100 Subject: [PATCH] Update docker-compose.windows.yml with bind mount for .env file --- docker-compose.windows.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/docker-compose.windows.yml b/docker-compose.windows.yml index 02504c83a..52d25c641 100644 --- a/docker-compose.windows.yml +++ b/docker-compose.windows.yml @@ -8,37 +8,40 @@ services: - //var/run/docker.sock://var/run/docker.sock - ./:/data/coolify coolify: - image: "ghcr.io/coollabsio/coolify:next" + image: "ghcr.io/coollabsio/coolify:${LATEST_IMAGE:-4.0.0-beta.199}" container_name: coolify restart: always working_dir: /var/www/html extra_hosts: - 'host.docker.internal:host-gateway' volumes: + - type: bind + source: ./.env + target: /var/www/html/.env + read_only: true - ./ssh:/var/www/html/storage/app/ssh - ./applications:/var/www/html/storage/app/applications - ./databases:/var/www/html/storage/app/databases - ./services:/var/www/html/storage/app/services - ./backups:/var/www/html/storage/app/backups environment: - - APP_ID=${APP_ID:-coolify-windows-desktop} + - APP_ID - APP_ENV=production - - APP_NAME=${APP_NAME:-Coolify} - - APP_KEY=${APP_KEY:-base64:ssTlCmrIE/q7whnKMvT6DwURikg69COzGsAwFVROm80=} - - DB_PASSWORD=${DB_PASSWORD:-coolify} - - REDIS_PASSWORD=${REDIS_PASSWORD:-coolify} + - APP_NAME + - APP_KEY + - DB_PASSWORD + - REDIS_PASSWORD - SSL_MODE=off - PHP_PM_CONTROL=dynamic - PHP_PM_START_SERVERS=1 - PHP_PM_MIN_SPARE_SERVERS=1 - PHP_PM_MAX_SPARE_SERVERS=10 - - PUSHER_APP_ID=${PUSHER_APP_ID:-coolify} - - PUSHER_APP_KEY=${PUSHER_APP_KEY:-coolify} - - PUSHER_APP_SECRET=${PUSHER_APP_SECRET:-coolify} + - PUSHER_APP_ID + - PUSHER_APP_KEY + - PUSHER_APP_SECRET - AUTOUPDATE=true - SELF_HOSTED=true - MUX_ENABLED=false - - IS_WINDOWS_DOCKER_DESKTOP=true ports: - "${APP_PORT:-8000}:80" expose: @@ -61,7 +64,7 @@ services: - coolify-db:/var/lib/postgresql/data environment: POSTGRES_USER: "${DB_USERNAME:-coolify}" - POSTGRES_PASSWORD: "${DB_PASSWORD:-coolify}" + POSTGRES_PASSWORD: "${DB_PASSWORD}" POSTGRES_DB: "${DB_DATABASE:-coolify}" healthcheck: test: @@ -80,7 +83,7 @@ services: restart: always command: redis-server --save 20 1 --loglevel warning --requirepass ${REDIS_PASSWORD} environment: - REDIS_PASSWORD: "${REDIS_PASSWORD:-coolify}" + REDIS_PASSWORD: "${REDIS_PASSWORD}" volumes: - coolify-redis:/data healthcheck: