-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.qa.yml
47 lines (44 loc) · 1004 Bytes
/
docker-compose.qa.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
version: '2.3'
services:
api:
restart: on-failure
scale: 1
mem_limit: 1024m
command: ["pm2-runtime", "ecosystem.config.js", "--only", "api"]
build:
context: .
target: service
dockerfile: Dockerfile
ports:
- 9000:9000
frontend:
restart: on-failure
scale: 1
mem_limit: 1024m
command: ["pm2-runtime", "ecosystem.config.js", "--only", "frontend"]
build:
context: .
target: service
dockerfile: Dockerfile
ports:
- 3000:3000
postgres:
image: postgres:9.6.1-alpine
env_file:
- ./common.env
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:6.0-rc3-alpine
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.3
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms750m -Xmx750m"
volumes:
- elasticsearch:/usr/share/elasticsearch/data
volumes:
pgdata:
driver: local
elasticsearch:
driver: local