-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.09 KB
/
docker-compose.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
services:
caddy:
image: caddy
restart: unless-stopped
volumes:
# - caddy_data:/data
# - caddy_config:/config
- ./Caddyfile:/etc/caddy/Caddyfile
- .:/www
ports:
- '${FORWARD_PHP_PORT}:80'
php: &laravel
build:
context: .
extra_hosts:
- 'host.docker.internal:host-gateway'
# ports:
# - '${FORWARD_PHP_PORT}:8000'
volumes:
- '.:/www'
# - ./php.dev.ini:/usr/local/etc/php/conf.d/xdebug.ini
# command: php artisan serve --host=0.0.0.0
user: 'sail'
environment:
- 'PHP_IDE_CONFIG=${PHP_IDE_CONFIG}'
reverb:
<<: *laravel
command: 'php artisan reverb:start'
ports:
- '${FORWARD_REVERB_PORT}:8080'
queue:
<<: *laravel
command: 'php artisan queue:work'
ports:
- '0:8080'
redis:
image: redis:7.2-alpine
ports:
- '${FORWARD_REDIS_PORT}:6379'