-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
101 lines (93 loc) · 2.38 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
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
93
94
95
96
97
98
99
100
101
version: '3.7'
services:
shell:
build:
context: .
dockerfile: ./Dockerfile-local
container_name: shell
command: bash -c "tail -f /dev/null"
volumes:
- .:/home/app
- node_modules:/home/app/node_modules
environment:
AWS_ACCESS_KEY_ID: '${AWS_ACCESS_KEY_ID}'
AWS_SECRET_ACCESS_KEY: '${AWS_SECRET_ACCESS_KEY}'
client:
build:
context: .
dockerfile: ./Dockerfile-local
container_name: client
command: bash -c "npm run start:client"
volumes:
- .:/home/app
- node_modules:/home/app/node_modules
environment:
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
ports:
- '1234:1234'
public:
build:
context: .
dockerfile: ./Dockerfile-local
container_name: public
command: bash -c "npm run start:public"
environment:
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
ports:
- '5678:5678'
volumes:
- .:/home/app
- node_modules:/home/app/node_modules
api:
build:
context: .
dockerfile: ./Dockerfile-local
container_name: api
command: bash -c "npm run start:api:docker"
environment:
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
ELASTICSEARCH_ENDPOINT: http://elasticsearch:9200
ELASTICSEARCH_HOST: elasticsearch
ports:
- '3011:3011'
- '4000:4000'
- '5000:5000'
- '9001:9001'
volumes:
- .:/home/app
- node_modules:/home/app/node_modules
depends_on:
- dynamodb-local
- elasticsearch
dynamodb-local:
image: amazon/dynamodb-local:latest
container_name: dynamodb-local
ports:
- '8000:8000'
dynamodb-admin:
image: aaronshaf/dynamodb-admin
ports:
- '8001:8001'
environment:
DYNAMO_ENDPOINT: 'http://dynamodb-local:8000'
AWS_REGION: 'us-east-1'
AWS_ACCESS_KEY_ID: S3RVER
AWS_SECRET_ACCESS_KEY: S3RVER
depends_on:
- dynamodb-local
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro,z
- elasticsearch:/usr/share/elasticsearch/data:z
ports:
- '9200:9200'
environment:
ES_JAVA_OPTS: -Xms512m -Xmx512m
discovery.type: single-node
volumes:
node_modules:
elasticsearch: