forked from ic3software/mccs-alpha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.production.yml
92 lines (87 loc) · 1.82 KB
/
docker-compose.production.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3'
services:
web:
container_name: mccs
build:
context: .
dockerfile: dockerfile.production
args:
- GIT_TAG=$GIT_TAG
- BUILD_DATE=$BUILD_DATE
- GIT_COMMIT=$GIT_COMMIT
- GIT_TREE_STATUS=$GIT_TREE_STATUS
restart: always
volumes:
- ./:/usr/src/app
ports:
- 8080:8080
depends_on:
- mongo
- es01
postgres:
container_name: postgres
image: postgres:11.4
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=mccs
volumes:
- postgresql:/var/lib/postgresql/data
mongo:
container_name: mongo
image: mongo:4.0.10
restart: always
ports:
- 27017:27017
volumes:
- mongodb:/data/db
- restore:/data/restore
es01:
container_name: es01
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.1
restart: always
environment:
- node.name=es01
- cluster.initial_master_nodes=es01
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
volumes:
- esdata01:/usr/share/elasticsearch/data
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.1.1
restart: always
environment:
- ELASTICSEARCH_HOSTS=http://es01:9200
ports:
- 5601:5601
depends_on:
- es01
volumes:
mongodb:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: 'mnt/mccs_data/mongo'
esdata01:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: 'mnt/mccs_data/es'
restore:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: 'mnt/mccs_data/restore'
postgresql:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: 'mnt/mccs_data/postgres'