-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.31 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
services:
db:
image: postgres:17-alpine
container_name: postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: valkey/valkey:7-alpine
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
stream:
image: ghcr.io/fa-sharp/tinistream:0.1.9
platform: linux/amd64
container_name: tinistream
ports:
- "8081:8081"
environment:
STREAMER_PORT: 8081
STREAMER_SERVER_ADDRESS: http://localhost:8081
STREAMER_REDIS_URL: redis://redis:6379
STREAMER_TTL: 360
env_file: server/.env
depends_on:
- redis
rschat:
build:
context: .
ports:
- "8080:8080"
environment:
RUST_LOG: info
RS_CHAT_SERVER_ADDRESS: http://localhost:8080
RS_CHAT_DATABASE_URL: postgres://postgres:postgres@postgres/postgres
RS_CHAT_REDIS_URL: redis://redis:6379
RS_CHAT_DATA_DIR: /data
RS_CHAT_TINISTREAM_URL: http://tinistream:8081
env_file: server/.env
volumes:
- ./.docker:/certs
- rschat_data:/data
depends_on:
- db
- redis
- stream
volumes:
postgres_data:
redis_data:
rschat_data: