-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.api.yml
53 lines (50 loc) · 1.23 KB
/
docker-compose.api.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
version: '3.2'
services:
api:
container_name: api
image: liteapi
environment:
# Below values can be found in vault
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_REGION: ${AWS_REGION}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_STORAGE_BUCKET_NAME: ${AWS_STORAGE_BUCKET_NAME}
env_file:
- api.env
depends_on:
- db
- elasticsearch
- redis
ports:
- 8100:8100
entrypoint: dockerize -wait tcp://db:5432 -wait tcp://elasticsearch:9200 -wait tcp://redis:6379 -timeout 5m
command: /app/start-e2e.sh
stdin_open: true
tty: true
db:
image: eu.gcr.io/sre-docker-registry/lite-db:latest
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=lite-api
ports:
- 5432:5432
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- xpack.ml.enabled=false
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms128m -Xmx1g
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
ports:
- 9200:9200
- 9300:9300