Files
zenithar/compose.yml
2025-01-13 00:32:13 -03:00

75 lines
1.3 KiB
YAML

services:
laravel:
build:
context: .
args:
UID: 1000
GID: 1000
ports:
- "80:80"
volumes:
- ./:/var/www/html
scheduler:
build:
context: .
args:
UID: 1000
GID: 1000
volumes:
- .:/var/www/html
user: www-data
entrypoint: [ "php", "artisan", "schedule:work", "-v" ]
worker:
build:
context: .
args:
UID: 1000
GID: 1000
volumes:
- .:/var/www/html
user: www-data
entrypoint: [ "php", "artisan", "queue:work", "-v" ]
vite:
image: node:23
ports:
- "5173:5173"
volumes:
- ./:/app
user: "1000:1000"
working_dir: /app
entrypoint: [ "npm", "run", "dev", "--", "--host" ]
mailpit:
image: "axllent/mailpit:latest"
restart: unless-stopped
ports:
- "1025:1025"
- "8025:8025"
postgres:
image: postgres:17
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_DB: laravel
POSTGRES_PASSWORD: secret
redis:
image: redis:alpine
restart: unless-stopped
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
retries: 3
timeout: 5s
volumes:
postgres_data: