This repository was archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 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"
services:
bot:
image: catalogger
build: .
command: ["/app/catalogger", "bot"]
environment:
- "DATABASE_URL=postgresql://postgres:postgres@postgres/postgres"
- "REDIS=redis:6379"
volumes:
- "./.env:/app/.env:ro"
restart: unless-stopped
depends_on:
- redis
- postgres
networks:
- default
dashboard:
image: catalogger
command: ["/app/catalogger", "web"]
environment:
- "DATABASE_URL=postgresql://postgres:postgres@postgres/postgres"
- "REDIS=redis:6379"
- "PORT=:5000"
- "RPC_HOST=bot:50051"
volumes:
- "./.env:/app/.env:ro"
ports:
- "127.0.0.1:2838:5000"
restart: unless-stopped
depends_on:
- redis
- postgres
- bot
networks:
- default
postgres:
image: postgres:13-alpine
volumes:
- "postgres_data:/var/lib/postgresql/data"
command: ["postgres",
"-c", "max-connections=1000",
"-c", "timezone=Etc/UTC",
"-c", "max_wal_size=1GB",
"-c", "min_wal_size=80MB",
"-c", "shared_buffers=128MB"]
environment:
- "POSTGRES_PASSWORD=postgres"
restart: unless-stopped
networks:
- default
redis:
image: redis:alpine
restart: unless-stopped
volumes:
- redis_data:/data
networks:
- default
volumes:
postgres_data:
redis_data: