-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 868 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 868 Bytes
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
version: "3"
services:
compose-nginx:
image: nginx:latest
container_name: "compose-nginx"
restart: always
ports:
- "80:80"
- "443:443"
environment:
- TZ=Asia/Shanghai
depends_on:
- "compose-php"
volumes:
- "/usr/local/webTool/nginx/conf.d:/etc/nginx/conf.d"
- "/usr/local/webTool/www:/usr/share/nginx/html"
- "/usr/local/webTool/nginx/log:/var/log/nginx"
networks:
- net-app
compose-php:
image: php:7.4-fpm
container_name: "compose-php"
restart: always
ports:
- "9000:9000"
environment:
- TZ=Asia/Shanghai
volumes:
- "/usr/local/webTool/www:/var/www/html/"
networks:
- net-app
networks:
net-app: