-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (55 loc) · 1.07 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
54
55
56
57
58
59
version: '3'
services:
nginx:
hostname: nginx
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "80:80"
links:
- php:php-cgi
volumes:
- ./wwwroot:/usr/local/nginx/html
restart: always
php:
hostname: php
build: ./php
links:
- mysql:mysql-db
volumes:
- ./wwwroot:/usr/local/nginx/html
restart: always
mysql:
hostname: mysql
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- ./mysql/conf:/etc/mysql/conf.d
- ./mysql/data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: wordpress
MYSQL_USER: user
MYSQL_PASSWORD: user123
restart: always
redis-server:
image: redis:latest
ports:
- 6379:6379
restart: always
node:
hostname: node
build:
context: ./wwwroot
dockerfile: Dockerfile
ports:
- "8080:8080"
links:
- mysql:mysql-db
- redis-server:rd
command: node server/server.js
volumes:
- ./wwwroot:/wwwroot
restart: always