Update docker-compose.windows.yml with bind mount for .env file
This commit is contained in:
parent
dc0b0980a9
commit
ab6c1ddc20
@ -8,37 +8,40 @@ 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:next"
|
image: "ghcr.io/coollabsio/coolify:${LATEST_IMAGE:-4.0.0-beta.199}"
|
||||||
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:
|
||||||
- APP_ID=${APP_ID:-coolify-windows-desktop}
|
- APP_ID
|
||||||
- APP_ENV=production
|
- APP_ENV=production
|
||||||
- APP_NAME=${APP_NAME:-Coolify}
|
- APP_NAME
|
||||||
- APP_KEY=${APP_KEY:-base64:ssTlCmrIE/q7whnKMvT6DwURikg69COzGsAwFVROm80=}
|
- APP_KEY
|
||||||
- DB_PASSWORD=${DB_PASSWORD:-coolify}
|
- DB_PASSWORD
|
||||||
- REDIS_PASSWORD=${REDIS_PASSWORD:-coolify}
|
- REDIS_PASSWORD
|
||||||
- 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:-coolify}
|
- PUSHER_APP_ID
|
||||||
- PUSHER_APP_KEY=${PUSHER_APP_KEY:-coolify}
|
- PUSHER_APP_KEY
|
||||||
- PUSHER_APP_SECRET=${PUSHER_APP_SECRET:-coolify}
|
- PUSHER_APP_SECRET
|
||||||
- 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:
|
||||||
@ -61,7 +64,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:-coolify}"
|
POSTGRES_PASSWORD: "${DB_PASSWORD}"
|
||||||
POSTGRES_DB: "${DB_DATABASE:-coolify}"
|
POSTGRES_DB: "${DB_DATABASE:-coolify}"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test:
|
||||||
@ -80,7 +83,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:-coolify}"
|
REDIS_PASSWORD: "${REDIS_PASSWORD}"
|
||||||
volumes:
|
volumes:
|
||||||
- coolify-redis:/data
|
- coolify-redis:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
Loading…
Reference in New Issue
Block a user