feat: try fix redis and horizon
This commit is contained in:
parent
43e6e5faf6
commit
9340e4a83b
|
|
@ -5,7 +5,7 @@ WORKDIR /var/www/html
|
||||||
|
|
||||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||||
RUN chmod +x /usr/local/bin/install-php-extensions && \
|
RUN chmod +x /usr/local/bin/install-php-extensions && \
|
||||||
install-php-extensions intl zip bcmath pdo_pgsql
|
install-php-extensions intl zip bcmath pdo_pgsql pcntl redis
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|
@ -27,7 +27,9 @@ RUN install-php-extensions \
|
||||||
pdo_pgsql \
|
pdo_pgsql \
|
||||||
gd \
|
gd \
|
||||||
zip \
|
zip \
|
||||||
opcache
|
opcache \
|
||||||
|
pcntl \
|
||||||
|
redis
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
pgsql:
|
pgsql:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_started
|
||||||
meilisearch:
|
meilisearch:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
# ports: <--- Supprimé pour la sécurité, NPM s'en occupe
|
# ports: <--- Supprimé pour la sécurité, NPM s'en occupe
|
||||||
|
|
@ -16,7 +18,7 @@ services:
|
||||||
APP_URL: "${APP_URL}"
|
APP_URL: "${APP_URL}"
|
||||||
SERVER_NAME: ":80"
|
SERVER_NAME: ":80"
|
||||||
APP_RUNTIME: "Laravel\\FrankenPHP\\Runtime" # <-- AJOUTÉ pour FrankenPHP
|
APP_RUNTIME: "Laravel\\FrankenPHP\\Runtime" # <-- AJOUTÉ pour FrankenPHP
|
||||||
APP_DEBUG: "true"
|
APP_DEBUG: "false"
|
||||||
FILESYSTEM_DISK: "public"
|
FILESYSTEM_DISK: "public"
|
||||||
DB_CONNECTION: "pgsql"
|
DB_CONNECTION: "pgsql"
|
||||||
DB_HOST: "pgsql"
|
DB_HOST: "pgsql"
|
||||||
|
|
@ -24,6 +26,9 @@ services:
|
||||||
DB_DATABASE: "${DB_DATABASE}"
|
DB_DATABASE: "${DB_DATABASE}"
|
||||||
DB_USERNAME: "${DB_USERNAME}"
|
DB_USERNAME: "${DB_USERNAME}"
|
||||||
DB_PASSWORD: "${DB_PASSWORD}"
|
DB_PASSWORD: "${DB_PASSWORD}"
|
||||||
|
REDIS_HOST: "redis"
|
||||||
|
REDIS_CLIENT: "predis"
|
||||||
|
QUEUE_CONNECTION: "redis"
|
||||||
SCOUT_DRIVER: "meilisearch"
|
SCOUT_DRIVER: "meilisearch"
|
||||||
MEILISEARCH_HOST: "http://meilisearch:7700"
|
MEILISEARCH_HOST: "http://meilisearch:7700"
|
||||||
MEILISEARCH_KEY: "${MEILISEARCH_KEY}"
|
MEILISEARCH_KEY: "${MEILISEARCH_KEY}"
|
||||||
|
|
@ -52,6 +57,39 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis:alpine
|
||||||
|
container_name: starter-redis-1
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- redis-data:/data
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
|
||||||
|
horizon:
|
||||||
|
image: gitea.leonmorival.com/leon-morival/laravel-starter:latest
|
||||||
|
container_name: starter-horizon-1
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
|
environment:
|
||||||
|
APP_ENV: "production"
|
||||||
|
APP_KEY: "${APP_KEY}"
|
||||||
|
DB_CONNECTION: "pgsql"
|
||||||
|
DB_HOST: "pgsql"
|
||||||
|
DB_PORT: 5432
|
||||||
|
DB_DATABASE: "${DB_DATABASE}"
|
||||||
|
DB_USERNAME: "${DB_USERNAME}"
|
||||||
|
DB_PASSWORD: "${DB_PASSWORD}"
|
||||||
|
REDIS_HOST: "redis"
|
||||||
|
REDIS_CLIENT: "predis"
|
||||||
|
QUEUE_CONNECTION: "redis"
|
||||||
|
volumes:
|
||||||
|
- storage-data:/var/www/html/storage/app
|
||||||
|
command: "php artisan horizon"
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
|
||||||
adminer:
|
adminer:
|
||||||
image: adminer:latest
|
image: adminer:latest
|
||||||
container_name: starter-adminer-1
|
container_name: starter-adminer-1
|
||||||
|
|
@ -80,6 +118,8 @@ volumes:
|
||||||
pgsql-data:
|
pgsql-data:
|
||||||
external: true
|
external: true
|
||||||
name: starter_pgsql_data
|
name: starter_pgsql_data
|
||||||
|
redis-data:
|
||||||
|
name: starter_redis_data
|
||||||
storage-data:
|
storage-data:
|
||||||
storage-public-data:
|
storage-public-data:
|
||||||
name: starter_storage_public_data
|
name: starter_storage_public_data
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue