First Commit
This commit is contained in:
@@ -0,0 +1,146 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
target: development
|
||||
image: boboko-app
|
||||
env_file: .env
|
||||
environment:
|
||||
APP_ENV: local
|
||||
APP_DEBUG: "true"
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
REDIS_HOST: valkey
|
||||
REDIS_PORT: 6379
|
||||
OTEL_TRACES_EXPORTER: none
|
||||
OTEL_METRICS_EXPORTER: none
|
||||
OTEL_LOGS_EXPORTER: none
|
||||
volumes:
|
||||
- .:/var/www/html:rw
|
||||
- vendor:/var/www/html/vendor
|
||||
- node_modules:/var/www/html/node_modules
|
||||
healthcheck:
|
||||
test: ["CMD", "php-fpm8.5", "-t"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
start_period: 60s
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
valkey:
|
||||
condition: service_started
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- "${APP_PORT:-8080}:80"
|
||||
volumes:
|
||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./public:/var/www/html/public:ro
|
||||
- ./storage/app/public:/var/www/html/storage/app/public:ro
|
||||
depends_on:
|
||||
app:
|
||||
condition: service_healthy
|
||||
|
||||
queue:
|
||||
image: boboko-app
|
||||
command: php artisan queue:work --tries=3 --max-jobs=500 --memory=256
|
||||
env_file: .env
|
||||
environment:
|
||||
APP_ENV: local
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
REDIS_HOST: valkey
|
||||
REDIS_PORT: 6379
|
||||
OTEL_TRACES_EXPORTER: none
|
||||
OTEL_METRICS_EXPORTER: none
|
||||
OTEL_LOGS_EXPORTER: none
|
||||
volumes:
|
||||
- .:/var/www/html
|
||||
- vendor:/var/www/html/vendor
|
||||
depends_on:
|
||||
app:
|
||||
condition: service_healthy
|
||||
|
||||
scheduler:
|
||||
profiles: [full]
|
||||
image: boboko-app
|
||||
command: php artisan schedule:work
|
||||
env_file: .env
|
||||
environment:
|
||||
APP_ENV: local
|
||||
DB_HOST: postgres
|
||||
DB_PORT: 5432
|
||||
volumes:
|
||||
- .:/var/www/html
|
||||
- vendor:/var/www/html/vendor
|
||||
depends_on:
|
||||
app:
|
||||
condition: service_healthy
|
||||
|
||||
postgres:
|
||||
image: postgres:18-alpine
|
||||
ports:
|
||||
- "${POSTGRES_HOST_PORT:-5436}:5432"
|
||||
environment:
|
||||
POSTGRES_DB: ${DB_DATABASE:-boboko}
|
||||
POSTGRES_USER: ${DB_USERNAME:-laravel}
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD:?DB_PASSWORD is required}
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
"pg_isready -U ${DB_USERNAME:-laravel} -d ${DB_DATABASE:-boboko}",
|
||||
]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
mailpit:
|
||||
image: axllent/mailpit
|
||||
ports:
|
||||
- "${MAILPIT_PORT:-8025}:8025"
|
||||
|
||||
valkey:
|
||||
image: valkey/valkey:7.2.13
|
||||
ports:
|
||||
- "${VALKEY_PORT:-6339}:6379"
|
||||
|
||||
stoic:
|
||||
image: ghcr.io/lexx27/stoic:latest
|
||||
user: root
|
||||
ports:
|
||||
- "${STOIC_PORT:-2727}:2727"
|
||||
environment:
|
||||
STOIC_CONFIG_DIR: /config/
|
||||
STOIC_SECRET: ${STOIC_SECRET:?STOIC_SECRET is required}
|
||||
STOIC_SSO_SECRET: ${STOIC_SSO_SECRET:?STOIC_SSO_SECRET is required}
|
||||
volumes:
|
||||
- ./resources/stoic/stoic_config.yml:/config/stoic_config.yml:ro
|
||||
- ./resources/stoic/stoic_schemas.yml:/config/stoic_schemas.yml:ro
|
||||
- ./resources/stoic/content:/content
|
||||
- ./resources/stoic/media:/media
|
||||
- ./storage/app/public/stoic:/storage/app/public/stoic
|
||||
- .:/repository
|
||||
|
||||
vite:
|
||||
build:
|
||||
context: .
|
||||
target: vite-dev
|
||||
working_dir: /app
|
||||
command: npm run dev
|
||||
ports:
|
||||
- "${VITE_PORT:-5173}:5173"
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
volumes:
|
||||
- .:/app
|
||||
- /app/node_modules
|
||||
|
||||
volumes:
|
||||
vendor:
|
||||
node_modules:
|
||||
pgdata:
|
||||
Reference in New Issue
Block a user