-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (53 loc) · 1.46 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
version: '3'
services:
scorpio-db:
image: postgres:14.4
environment:
- POSTGRES_USER=postgres # name of the application database user
- POSTGRES_PASSWORD=postgres # name of the application database user
- POSTGRES_DB=postgres # name of the application database
volumes:
- scorpiodbvolume:/var/lib/postgresql/data/
networks:
- microservices
scorpio-web:
build: .
entrypoint: /code/entrypoint.sh
environment:
- APPLICATION_PORT=${APPLICATION_PORT:-8013}
volumes:
- .:/code
networks:
- microservices
ports:
- "${APPLICATION_PORT:-8013}:${APPLICATION_PORT:-8013}"
depends_on:
- scorpio-db
elasticsearch:
image: elasticsearch:7.9.3
environment:
- node.name=elasticsearch
- discovery.seed_hosts=elasticsearch
- cluster.initial_master_nodes=elasticsearch
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- http.cors.enabled=true
- http.cors.allow-origin=http://localhost:8000
- http.cors.allow-headers=Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With
- http.cors.allow-credentials=true
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch:/usr/share/elasticsearch/data
networks:
- microservices
ports:
- 9200:9200
volumes:
scorpiodbvolume:
elasticsearch:
networks:
microservices: