-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (64 loc) · 1.32 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
version: "3.8"
volumes:
elasticdata:
redisdata:
postgres_data:
services:
etl:
build:
context: ./etl_service
dockerfile: Dockerfile
container_name: etl_team_1
depends_on:
- redis
- elasticsearch
- database
env_file:
- .env
restart: always
fastapi:
build:
context: ./api_service
dockerfile: Dockerfile
container_name: fastapi_team_1
depends_on:
- etl
env_file:
- .env
ports:
- "8000:8000"
restart: always
nginx:
image: nginx:1.21.6
container_name: nginx_team_1
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/configs:/etc/nginx/conf.d:ro
ports:
- "80:80"
depends_on:
- fastapi
database:
image: postgres:13.0-alpine
container_name: database_team_1
volumes:
- $HOME/postgresql/data:/var/lib/postgresql/data/
restart: always
elasticsearch:
image: elasticsearch:7.17.4
environment:
- discovery.type=single-node
container_name: elasticsearch_team_1
volumes:
- elasticdata:/usr/src/elasticsearch/data
ports:
- "9200:9200"
restart: always
redis:
image: redis:6-alpine
container_name: rediscache_team_1
volumes:
- redisdata:/data
ports:
- "6379:6379"
restart: always