-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1003 Bytes
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "3.5"
networks:
simpledocker-network:
driver: bridge
volumes:
mysql:
driver: local
services:
php74-fpm:
build:
context: ./php-fpm
args:
- PHP_VERSION=7.4
- http_proxy
- https_proxy
- no_proxy
volumes:
- ./src:/usr/share/nginx/html/
ports:
- "9007:9001"
expose:
- "9000"
networks:
- simpledocker-network
php8-fpm:
build:
context: ./php-fpm
args:
- PHP_VERSION=8
- http_proxy
- https_proxy
- no_proxy
volumes:
- ./src:/usr/share/nginx/html/
ports:
- "9008:9001"
expose:
- "9000"
networks:
- simpledocker-network
nginx:
image: nginx:alpine
volumes:
- ./src:/usr/share/nginx/html/
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./logs/nginx:/var/log/nginx
- ./nginx/sites:/etc/nginx/sites-available
ports:
- "80:80"
networks:
- simpledocker-network