36 lines
719 B
YAML
36 lines
719 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: minicrm:latest
|
|
container_name: minicrm_app
|
|
ports:
|
|
- "${APP_PORT:-8080}:80"
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ./database:/var/www/html/database
|
|
- ./storage/app:/var/www/html/storage/app
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- redis
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost/admin/login"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: minicrm_redis
|
|
command: redis-server --appendonly yes
|
|
volumes:
|
|
- redis_data:/data
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
redis_data:
|