-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (63 loc) · 1.45 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (63 loc) · 1.45 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
version: "3.8"
services:
# elasticsearch:
# build:
# context: devops/elastic
# dockerfile: Dockerfile
# ports:
# - "9200:9200"
# healthcheck:
# test: ["CMD-SHELL", "curl --silent --fail http://localhost:9200/_cluster/health || exit 1"]
# interval: 30s
# timeout: 10s
# retries: 5
# kibana:
# build:
# context: devops/kibana
# dockerfile: Dockerfile
# ports:
# - "5601:5601"
# environment:
# ELASTICSEARCH_URL: "http://elasticsearch:9200"
# depends_on:
# - elasticsearch
# logstash:
# build:
# context: devops/logstash
# dockerfile: Dockerfile
# ports:
# - "9600:9600"
# depends_on:
# - elasticsearch
db_psql:
build:
context: .
dockerfile: devops/postgres/Dockerfile
env_file:
- ".env"
volumes:
- ./data/db_psql:/var/lib/postgresql/data
ports:
- "${PSQL_EXTERNAL_PORT}:${PSQL_INTERNAL_PORT}"
container_name: "${PSQL_CONTAINER_NAME}"
image: "${PSQL_IMAGE_NAME}"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
tg_bot:
build:
context: .
dockerfile: devops/tg_bot/Dockerfile
container_name: ${APP_CONTAINER_NAME}
env_file:
- ".env"
volumes:
- alembic_migrations:/code/src/migrations
depends_on:
db_psql:
condition: service_healthy
volumes:
alembic_migrations: