-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
49 lines (46 loc) · 1.02 KB
/
docker-compose.yaml
File metadata and controls
49 lines (46 loc) · 1.02 KB
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
version: '3'
services:
backend:
platform: linux/amd64
restart: unless-stopped
env_file:
- .env
build:
context: ./fastapi_service
dockerfile: ./Dockerfile
ports:
- '8000:8000'
volumes:
- ${DATA_FOLDER}:/data
postgresDB:
image: postgres
restart: unless-stopped
container_name: ${PG_HOST}
env_file:
- .env
ports:
- 5432:${PG_PORT}
volumes:
- ./db:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/create_tables.sql
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.1
container_name: ${ELASTIC_HOST}
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
ports:
- 9200:${ELASTIC_PORT}
volumes:
- ./esdata:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:7.15.1
links:
- elasticsearch
ports:
- 5601:5601