-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (53 loc) · 1.03 KB
/
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
# yaml 配置实例
version: '3'
services:
mysql:
image: "mysql:5.7"
ports:
- "3306:3306"
volumes:
- "./mysql/data:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: root
restart: always
privileged: true
networks:
- webnet
redis:
image: "redis:6.2.5"
ports:
- "6379:6379"
volumes:
- "./redis/data:/data/redis/data"
- "./redis/redis.conf:/etc/redis.conf"
command: "redis-server /etc/redis.conf"
restart: always
privileged: true
networks:
- webnet
nginx:
image: "nginx:1.14.0"
ports:
- "80:80"
restart: always
privileged: true
networks:
- webnet
volumes:
- "./www/:/www/"
- "./nginx/vhost:/etc/nginx/conf.d"
- "./nginx/conf/nginx.conf:/etc/nginx/nginx.conf"
node:
image: "node:14"
ports:
- "3000:3000"
restart: always
privileged: true
networks:
- webnet
volumes:
- "./www/:/www/"
command: "node /www/test.js"
networks:
webnet:
driver: bridge