-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (64 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
68 lines (64 loc) · 1.25 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
version: '3'
services:
nginx:
image: nginx
ports:
- 80:80
networks:
frontend:
ipv4_address: 192.168.100.2
volumes:
- ./nginx/config:/etc/nginx/conf.d
- ./static/dist:/var/www
############################
# node
node:
image: node
working_dir: /root/node
environment:
TZ: Asia/Shanghai
command:
- /bin/sh
- -c
- |
npm i
node index.js
expose:
- 4000
networks:
frontend:
ipv4_address: 192.168.100.3
volumes:
- ./node:/root/node
############################
# api
mysql:
image: mysql
command: mysqld --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: ncov
MYSQL_USER: ncov
MYSQL_PASSWORD: P@ssw0rd
MYSQL_ROOT_PASSWORD: P@ssw0rd
ports:
- 3306:3306
networks:
frontend:
ipv4_address: 192.168.100.4
volumes:
- ./api/mysql/data:/var/lib/mysql
- ./api/mysql/config:/etc/mysql
redis:
image: redis
ports:
- 6379:6379
networks:
frontend:
ipv4_address: 192.168.100.5
networks:
frontend:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.100.0/24