Atualizar docker-compose.yaml

This commit is contained in:
wallaceosmar 2024-11-23 20:12:52 +00:00
parent 7fcf93cfa1
commit 7b77f58079

View File

@ -12,6 +12,8 @@ services:
- REDIS_PASSWORD=${REDIS_PASSWORD} - REDIS_PASSWORD=${REDIS_PASSWORD}
- APP_PREVIOUS_KEYS=${APP_PREVIOUS_KEYS} - APP_PREVIOUS_KEYS=${APP_PREVIOUS_KEYS}
- PHP_OPCACHE_ENABLE=${PHP_OPCACHE_ENABLE:-1} - PHP_OPCACHE_ENABLE=${PHP_OPCACHE_ENABLE:-1}
networks:
- nexo-cloud
depends_on: depends_on:
redis: redis:
condition: service_healthy condition: service_healthy
@ -25,6 +27,8 @@ services:
- POSTGRES_USER=${DB_USERNAME:-nexo-cloud} - POSTGRES_USER=${DB_USERNAME:-nexo-cloud}
- POSTGRES_PASSWORD=${DB_PASSWORD:-nexo-cloud} - POSTGRES_PASSWORD=${DB_PASSWORD:-nexo-cloud}
- POSTGRES_DB=${DB_DATABASE:-nexo-cloud} - POSTGRES_DB=${DB_DATABASE:-nexo-cloud}
networks:
- nexo-cloud
healthcheck: healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DB_USERNAME}", "-d", "${DB_DATABASE:-nexo-cloud}" ] test: [ "CMD-SHELL", "pg_isready -U ${DB_USERNAME}", "-d", "${DB_DATABASE:-nexo-cloud}" ]
interval: 5s interval: 5s
@ -35,6 +39,8 @@ services:
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}"
networks:
- nexo-cloud
healthcheck: healthcheck:
test: redis-cli ping test: redis-cli ping
interval: 5s interval: 5s
@ -44,6 +50,8 @@ services:
image: git.masscivicdynamic.com/masscivicdynamic/nexo-cloud:latest image: git.masscivicdynamic.com/masscivicdynamic/nexo-cloud:latest
command: ["php", "/var/www/html/artisan", "schedule:work"] command: ["php", "/var/www/html/artisan", "schedule:work"]
stop_signal: SIGTERM stop_signal: SIGTERM
networks:
- nexo-cloud
healthcheck: healthcheck:
test: ["CMD", "healthcheck-schedule"] test: ["CMD", "healthcheck-schedule"]
start_period: 10s start_period: 10s
@ -56,6 +64,8 @@ services:
image: git.masscivicdynamic.com/masscivicdynamic/nexo-cloud:latest image: git.masscivicdynamic.com/masscivicdynamic/nexo-cloud:latest
command: [ "php", "/var/www/html/artisan", "queue:work", "--tries=3" ] command: [ "php", "/var/www/html/artisan", "queue:work", "--tries=3" ]
stop_signal: SIGTERM stop_signal: SIGTERM
networks:
- nexo-cloud
healthcheck: healthcheck:
test: [ "CMD", "healthcheck-queue" ] test: [ "CMD", "healthcheck-queue" ]
start_period: 10s start_period: 10s
@ -80,3 +90,6 @@ services:
start_period: 10s start_period: 10s
ports: ports:
- "8000:8000" - "8000:8000"
networks:
nexo-cloud: