This repository has been archived by the owner on Jun 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
67 lines (62 loc) · 1.55 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
60
61
62
63
64
65
66
67
version: '3'
services:
node:
build:
.
volumes:
- "./:/usr/local/app"
working_dir: "/usr/local/app"
command: "npm run install_run"
environment:
LANG: "zh_CN.UTF-8"
LC_ALL: "zh_CN.UTF-8"
restart: always
depends_on:
- postgres
- redis
- rabbitmq
nginx:
build:
./etc/nginx
volumes:
- "./etc/nginx:/etc/nginx"
ports:
- "80:80"
- "443:443"
environment:
LANG: "zh_CN.UTF-8"
LC_ALL: "zh_CN.UTF-8"
restart: always
depends_on:
- node
postgres:
build:
./etc/postgresql
volumes:
- "./etc/postgresql/postgresql.conf:/etc/postgresql/postgresql.conf"
ports:
- "127.0.0.1:5432:5432"
environment:
POSTGRES_PASSWORD: "lzw981018"
LANG: "zh_CN.UTF-8"
LC_ALL: "zh_CN.UTF-8"
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
restart: always
redis:
build:
./etc/redis
volumes:
- "./etc/redis:/etc/redis"
ports:
- "127.0.0.1:6379:6379"
command: redis-server /etc/redis/redis.conf
restart: always
rabbitmq:
image: "rabbitmq:3.8.3"
hostname: "rabbitmq"
restart: always
voip:
image: "peerjs/peerjs-server:0.5.1"
restart: always
ports:
- "9000:9000"