-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
66 lines (60 loc) · 1.25 KB
/
docker-compose.yaml
File metadata and controls
66 lines (60 loc) · 1.25 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.9'
services:
fastapi-solution:
container_name: ${PROJECT_NAME}-app
build:
context: ./fastapi-solution
dockerfile: Dockerfile
restart: always
env_file:
- .env
ports:
- ${APP_PORT}:${APP_PORT}
networks:
custom_network:
depends_on:
- elasticsearch
- redis
etl:
container_name: ${PROJECT_NAME}-etl
build:
context: ./postgres_to_es
dockerfile: Dockerfile
restart: always
env_file:
- .env
networks:
custom_network:
depends_on:
- elasticsearch
- redis
elasticsearch:
container_name: ${PROJECT_NAME}-elasticsearch
image: elasticsearch:8.7.0
restart: always
volumes:
- elasticsearch:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms2048m -Xmx2048m
networks:
custom_network:
expose:
- ${ELASTICSEARCH_PORT}
redis:
container_name: ${PROJECT_NAME}-redis
image: redis:7.0.10-alpine
restart: always
volumes:
- redis:/data
networks:
custom_network:
expose:
- ${REDIS_PORT}
volumes:
elasticsearch:
redis:
networks:
custom_network:
external: True