-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.local.yml
67 lines (63 loc) · 1.45 KB
/
docker-compose.local.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
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
version: '3.6'
services:
app:
image: ibrunotome/php:8.3.6-frankenphp
command: php artisan octane:frankenphp --host=0.0.0.0 --port=8000 --max-requests=1
ports:
- '80:8000'
volumes:
- '.:/app'
- './php.ini:/usr/local/etc/php/php.ini'
networks:
- local
depends_on:
- pgsql
- redis
extra_hosts:
- 'host.docker.internal:host-gateway'
queue:
image: ibrunotome/php:8.3.6-frankenphp
command: php artisan horizon
volumes:
- '.:/var/www'
- './php.ini:/usr/local/etc/php/php.ini'
networks:
- local
depends_on:
- pgsql
- redis
pgsql:
image: postgres:16-alpine
ports:
- '${FORWARD_DB_PORT:-5432}:5432'
environment:
PGPASSWORD: '${DB_PASSWORD:-secret}'
POSTGRES_DB: '${DB_DATABASE}'
POSTGRES_USER: '${DB_USERNAME}'
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
volumes:
- 'localpgsql:/var/lib/postgresql/data'
networks:
- local
healthcheck:
test: [ 'CMD', 'pg_isready', '-q', '-d', '${DB_DATABASE}', '-U', '${DB_USERNAME}' ]
redis:
image: library/redis:7.2.3-alpine
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
- 'localredis:/data'
networks:
- local
healthcheck:
test: [ 'CMD', 'redis-cli', 'ping' ]
networks:
local:
driver: bridge
volumes:
localpgsql:
driver: local
localredis:
driver: local
localmeilisearch:
driver: local