forked from Reuf12/lite-api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
72 lines (68 loc) · 1.28 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
version: '3.4'
services:
db:
image: "postgres"
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=lite-api
expose:
- 5432
ports:
- 5462:5432
networks:
- lite
api:
env_file:
- .env
build: .
volumes:
- .:/app
ports:
- 8100:8100
links:
- db
expose:
- 8100
command: ./manage.py runserver 0.0.0.0:${PORT:-8100}
networks:
- lite
# Elasticsearch Docker Images: https://www.docker.elastic.co/
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
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- lite
redis:
image: "redis:5-alpine"
container_name: redis
expose:
- 6379
ports:
- 6379:6379
networks:
- lite
networks:
lite:
external: true
volumes:
elasticsearch-data:
driver: local