-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
42 lines (41 loc) · 1.13 KB
/
docker-compose-dev.yml
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
services:
php: &laravel
build:
context: .
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- '.:/www'
- ./php.dev.ini:/usr/local/etc/php/conf.d/xdebug.ini
command: php artisan serve --host=0.0.0.0
user: 'sail'
working_dir: /www
environment:
- 'PHP_IDE_CONFIG=${PHP_IDE_CONFIG}'
ports:
- '${FORWARD_PHP_PORT}:8000'
reverb:
<<: *laravel
command: 'php artisan reverb:start'
ports:
- '${FORWARD_REVERB_PORT}:8080'
queue:
<<: *laravel
command: 'php artisan queue:work'
ports:
- '0:8080'
node:
image: node:21-alpine3.18
user: node
working_dir: /frontend
environment:
- NODE_ENV=development
volumes:
- '.:/frontend'
command: 'npm run dev -- --host=0.0.0.0 --port=${FORWARD_NODE_PORT}'
ports:
- ${FORWARD_NODE_PORT}:${FORWARD_NODE_PORT}
redis:
image: redis:7.2-alpine
ports:
- '${FORWARD_REDIS_PORT}:6379'