chore: docker compose, dockerfiles, caddy snippet, readme
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
54
docker-compose.yml
Normal file
54
docker-compose.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ./core
|
||||
dockerfile: Dockerfile.dev
|
||||
volumes:
|
||||
- ./core:/app
|
||||
ports:
|
||||
- "8080:8000"
|
||||
env_file: ./core/.env
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
scheduler:
|
||||
build:
|
||||
context: ./core
|
||||
dockerfile: Dockerfile.dev
|
||||
command: php artisan schedule:work
|
||||
volumes:
|
||||
- ./core:/app
|
||||
env_file: ./core/.env
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
worker:
|
||||
build:
|
||||
context: ./core
|
||||
dockerfile: Dockerfile.dev
|
||||
command: php artisan queue:work --tries=3 --sleep=1
|
||||
volumes:
|
||||
- ./core:/app
|
||||
env_file: ./core/.env
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
postgres:
|
||||
image: postgres:17
|
||||
environment:
|
||||
POSTGRES_DB: hado
|
||||
POSTGRES_USER: hado
|
||||
POSTGRES_PASSWORD: hado
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U hado -d hado"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
|
||||
volumes:
|
||||
pg_data:
|
||||
Reference in New Issue
Block a user