-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (66 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
71 lines (66 loc) · 1.85 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
networks:
diagonal-take-home:
volumes:
pgsqldata:
redis:
services:
php-cli:
profiles:
- donotstart
build:
context: ./dockerfiles
dockerfile: php.dockerfile
args:
BASE_IMAGE: php:8.4-cli-alpine
environment:
XDEBUG_MODE: '${XDEBUG_MODE:-off}'
XDEBUG_CLIENT_HOST: '${XDEBUG_CLIENT_HOST:-host.docker.internal}'
XDEBUG_CLIENT_PORT: '${XDEBUG_CLIENT_PORT:-9003}'
volumes:
- ./:/var/www/html
- ./dockerfiles/php.ini:/usr/local/etc/php/conf.d/99-custom.ini
networks:
- diagonal-take-home
php-octane:
depends_on:
- redis
- postgres
build:
context: ./dockerfiles
dockerfile: php.dockerfile
args:
BASE_IMAGE: php:8.4-fpm-alpine
restart: unless-stopped
entrypoint: php artisan octane:start --workers=${OCTANE_WORKERS:-5} --task-workers=${OCTANE_TASK_WORKERS:-1} --max-requests=${OCTANE_MAX_REQUESTS:-1} --host=0.0.0.0 --port=8000
environment:
XDEBUG_MODE: '${XDEBUG_MODE:-off}'
XDEBUG_CLIENT_HOST: '${XDEBUG_CLIENT_HOST:-host.docker.internal}'
XDEBUG_CLIENT_PORT: '${XDEBUG_CLIENT_PORT:-9003}'
ports:
- '${APP_PORT:-9002}:8000'
volumes:
- ./:/var/www/html
- ./dockerfiles/php.ini:/usr/local/etc/php/conf.d/99-custom.ini
networks:
- diagonal-take-home
postgres:
image: postgres:17.4
ports:
- '${FORWARD_DB_PORT:-5432}:5432'
environment:
POSTGRES_USER: '${DB_USERNAME:-postgres}'
POSTGRES_PASSWORD: '${DB_PASSWORD:-postgres}'
POSTGRES_DB: '${DB_DATABASE:-laravel}'
volumes:
- pgsqldata:/var/lib/postgresql/data
networks:
- diagonal-take-home
redis:
image: redis:6
restart: always
volumes:
- redis:/var/lib/redis/data
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
networks:
- diagonal-take-home