-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
92 lines (86 loc) · 2.01 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
92 lines (86 loc) · 2.01 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
timescale:
container_name: inv-timescale
image: timescale/timescaledb:latest-pg16
platform: linux/amd64
environment:
- POSTGRES_USER=${PG_USER:-app}
- POSTGRES_PASSWORD=${PG_PASSWORD:-app}
- POSTGRES_DB=${PG_DB:-app}
ports:
- "5432:5432"
command:
- postgres
- -c
- max_wal_size=16GB
- -c
- min_wal_size=2GB
- -c
- checkpoint_completion_target=0.9
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${PG_USER:-app} -d ${PG_DB:-app}"]
interval: 5s
timeout: 3s
retries: 10
restart: unless-stopped
networks:
- web
redis:
image: redis/redis-stack:latest
container_name: inv-redis
stop_grace_period: 2m
environment:
REDIS_ARGS: --appendonly yes --appendfsync everysec --save 60 1 --stop-writes-on-bgsave-error no
ports:
- "6379:6379"
- "5540:8001"
volumes:
- redisdata:/data
restart: unless-stopped
networks:
- web
ml-infer:
build:
context: .
dockerfile: Dockerfile.infer
container_name: ml-infer
restart: unless-stopped
environment:
MODEL_DIR: /app/data/ml/models
DEFAULT_STRATEGY: TrendLine
ML_GRPC_HOST: 0.0.0.0
ML_GRPC_PORT: 50051
ports:
- "50051:50051"
volumes:
- ./packages/ml/python:/app/ml
- ./data:/app/data
- ./proto:/app/proto
networks:
- web
# ---------- ВЕБ-АДМИНКИ ----------
pgadmin:
image: dpage/pgadmin4
container_name: inv-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL:-admin@example.com}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-admin}
PGADMIN_LISTEN_PORT: "5050"
ports:
- "5050:5050"
volumes:
- pgadmin_data:/var/lib/pgadmin
depends_on:
- timescale
restart: unless-stopped
networks:
- web
networks:
web:
driver: bridge
volumes:
pgdata:
pgadmin_data:
redisdata: