-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (82 loc) · 2.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
90 lines (82 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
x-app: &app
build:
context: ./apps/api/vendor/laravel/sail/runtimes/8.5
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP:-1000}'
image: sail-8.5/app
restart: unless-stopped
env_file: ./apps/api/.env
volumes:
- ./apps/api:/var/www/html
networks:
- sail
services:
laravelnuxt.api:
<<: *app
extra_hosts:
- 'host.docker.internal:host-gateway'
environment:
WWWUSER: '${WWWUSER:-1000}'
LARAVEL_SAIL: 1
OCTANE_HOST: '0.0.0.0'
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
IGNITION_LOCAL_SITES_PATH: '${PWD}'
APP_ENV: '${APP_ENV:-local}'
APP_DEBUG: '${APP_DEBUG:-true}'
SUPERVISOR_PHP_COMMAND: '${SUPERVISOR_PHP_COMMAND:-php artisan octane:start --watch}'
OCTANE_PORT: '8000'
ports:
- '${API_PORT:-8000}:8000'
depends_on: [laravelnuxt.redis]
laravelnuxt.schedule:
<<: *app
environment:
WWWUSER: '${WWWUSER:-1000}'
APP_ENV: '${APP_ENV:-local}'
SUPERVISOR_PHP_COMMAND: 'php artisan schedule:work'
depends_on: [laravelnuxt.api, laravelnuxt.redis]
laravelnuxt.queue:
<<: *app
environment:
WWWUSER: '${WWWUSER:-1000}'
APP_ENV: '${APP_ENV:-local}'
SUPERVISOR_PHP_COMMAND: 'php artisan queue:work'
depends_on: [laravelnuxt.api, laravelnuxt.redis]
laravelnuxt.redis:
image: redis:8-alpine
restart: unless-stopped
networks:
- sail
volumes:
- redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
laravelnuxt.web:
image: oven/bun:1
restart: unless-stopped
working_dir: /app
command: ${WEB_COMMAND:-bun --bun run dev}
env_file: ./apps/web/.env
volumes:
- ./apps/web:/app
networks:
- sail
ports:
- "${WEB_PORT:-3000}:3000"
composer:
image: composer:latest
profiles: [cli]
user: '${UID:-1000}:${GID:-1000}'
working_dir: /app
volumes:
- ./apps/api:/app
networks:
sail:
driver: bridge
volumes:
redisdata: