-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (82 loc) · 2.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
90 lines (82 loc) · 2.05 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
86
87
88
89
version: "3.1"
services:
mysql5.7:
image: mysql:5.7
container_name: mysql5.7
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- ./app/db:/var/lib/mysql
ports:
- "3306:3306"
nginx:
image: nginx:alpine
container_name: nginx
working_dir: /etc/nginx
volumes:
- ./app:/app
- ./config/nginx:/etc/nginx/conf.d
ports:
- "80:80"
- "443:443"
depends_on:
- php7.4
- php8.0
- php8.1
- php8.2
php7.4:
build:
context: ./config/php7.4
dockerfile: Dockerfile
container_name: php7.4
working_dir: /app
volumes:
- ./app:/app
- ./config/php7.4/php-ini-overrides.ini:/usr/local/etc/php/conf.d/00-php.ini
- ./bin/sendmail:/usr/local/bin/sendmail
environment:
PHP_IDE_CONFIG: serverName=localhost
php8.0:
build:
context: ./config/php8.0
dockerfile: Dockerfile
container_name: php8.0
working_dir: /app
volumes:
- ./app:/app
- ./config/php8.0/php-ini-overrides.ini:/usr/local/etc/php/conf.d/00-php.ini
- ./bin/sendmail:/usr/local/bin/sendmail
environment:
PHP_IDE_CONFIG: serverName=localhost
php8.1:
build:
context: config/php8.1
dockerfile: Dockerfile
container_name: php8.1
working_dir: /app
volumes:
- ./app:/app
- ./config/php8.1/php-ini-overrides.ini:/usr/local/etc/php/conf.d/00-php.ini
- ./bin/sendmail:/usr/local/bin/sendmail
environment:
PHP_IDE_CONFIG: serverName=localhost
php8.2:
build:
context: config/php8.2
dockerfile: Dockerfile
container_name: php8.2
working_dir: /app
volumes:
- ./app:/app
- ./config/php8.2/php-ini-overrides.ini:/usr/local/etc/php/conf.d/00-php.ini
- ./bin/sendmail:/usr/local/bin/sendmail
environment:
PHP_IDE_CONFIG: serverName=localhost
# Change default subnet addresses (for uncomment - delete only '#'):
#networks:
# default:
# driver: bridge
# ipam:
# driver: default
# config:
# - subnet: 10.10.0.1/16