-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (80 loc) · 1.76 KB
/
Copy pathdocker-compose.yml
File metadata and controls
85 lines (80 loc) · 1.76 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
services:
# PHP-FPM Service (Debian Bookworm)
php-fpm:
build:
context: .
dockerfile: ./php-fpm/Dockerfile
args:
PHP_VERSION: "8.5"
container_name: cbox-fpm
volumes:
- ./test-app:/var/www/html
networks:
- cbox-network
# PHP-FPM Dev Service (Debian Bookworm with Xdebug)
php-fpm-dev:
build:
context: .
dockerfile: ./php-fpm/Dockerfile
target: dev-root
args:
PHP_VERSION: "8.5"
container_name: cbox-fpm-dev
volumes:
- ./test-app:/var/www/html
networks:
- cbox-network
environment:
- XDEBUG_MODE=debug
- XDEBUG_CONFIG=client_host=host.docker.internal client_port=9003
profiles:
- dev
# PHP-CLI Service (Debian Bookworm)
php-cli:
build:
context: .
dockerfile: ./php-cli/Dockerfile
args:
PHP_VERSION: "8.5"
container_name: cbox-cli
volumes:
- ./test-app:/var/www/html
networks:
- cbox-network
command: tail -f /dev/null
# Nginx Service (Debian Bookworm)
nginx:
build:
context: .
dockerfile: ./nginx/Dockerfile
container_name: cbox-nginx
ports:
- "8080:80"
volumes:
- ./test-app:/var/www/html:ro
networks:
- cbox-network
depends_on:
- php-fpm
# PHP-FPM + Nginx Multi-Service (Debian Bookworm)
php-fpm-nginx:
build:
context: .
dockerfile: ./php-fpm-nginx/Dockerfile
args:
PHP_VERSION: "8.5"
container_name: cbox-fpm-nginx
ports:
- "8081:80"
volumes:
- ./test-app:/var/www/html
networks:
- cbox-network
environment:
- LARAVEL_SCHEDULER=true
- LARAVEL_AUTO_OPTIMIZE=false
profiles:
- multi
networks:
cbox-network:
driver: bridge