-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (62 loc) · 1.4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
66 lines (62 loc) · 1.4 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.3"
services:
db:
image: postgres:16.1-alpine3.18
container_name: db
restart: unless-stopped
env_file:
- ./.env
environment:
POSTGRES_USER: ${PSQL_USER}
POSTGRES_PASSWORD: ${PSQL_PSW}
POSTGRES_DB: ${PSQL_DB}
TZ: Europe/Moscow
ports:
- 15432:5432
networks:
- statement_bot_network
volumes:
# - ./pgtune_init.sql:/docker-entrypoint-initdb.d/init.sql
- ./.backups/db:/var/lib/postgresql/data
cache:
image: redis/redis-stack-server
container_name: cache
restart: unless-stopped
env_file:
- ./.env
command: redis-server --requirepass ${REDIS_PSW} --loadmodule /opt/redis-stack/lib/redisearch.so --loadmodule /opt/redis-stack/lib/rejson.so
ports:
- 16379:6379
networks:
- statement_bot_network
volumes:
- ./.backups/cache:/data
bot:
build: bot
container_name: bot
restart: unless-stopped
environment:
- TZ=Europe/Moscow
depends_on:
- cache
- db
networks:
- statement_bot_network
volumes:
- ./bot/src:/root/.project
tasks:
build: tasks
container_name: tasks
restart: unless-stopped
environment:
- TZ=Europe/Moscow
tty: true
depends_on:
- cache
- db
networks:
- statement_bot_network
volumes:
- ./tasks/src:/root/.project
networks:
statement_bot_network: