-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
87 lines (81 loc) · 2.09 KB
/
docker-compose.yml
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
version: "3"
services:
bot:
image: termora
build: .
command: ["/app/termora", "bot"]
environment:
- "DATABASE_URL=postgresql://postgres:postgres@postgres/postgres"
- "TYPESENSE_URL=http://typesense:8108"
- "TYPESENSE_APIKEY=typesense"
volumes:
- "./config.toml:/app/config.toml:ro"
restart: unless-stopped
depends_on:
- postgres
networks:
- default
api:
image: termora
command: ["/app/termora", "api"]
environment:
- "DATABASE_URL=postgresql://postgres:postgres@postgres/postgres"
- "TYPESENSE_URL=http://typesense:8108"
- "TYPESENSE_APIKEY=typesense"
- "PORT=:5000"
volumes:
- "./config.toml:/app/config.toml:ro"
ports:
- "127.0.0.1:2838:5000"
restart: unless-stopped
depends_on:
- postgres
networks:
- default
site:
image: termora
command: ["/app/termora", "site"]
environment:
- "DATABASE_URL=postgresql://postgres:postgres@postgres/postgres"
- "TYPESENSE_URL=http://typesense:8108"
- "TYPESENSE_APIKEY=typesense"
- "PORT=:5000"
volumes:
- "./config.toml:/app/config.toml:ro"
ports:
- "127.0.0.1:2839:5000"
restart: unless-stopped
depends_on:
- postgres
networks:
- default
typesense:
image: typesense/typesense:0.23.0
volumes:
- "typesense_data:/data"
command: ["typesense-server",
"--data-dir", "/data",
"--api-key", "typesense"]
restart: unless-stopped
networks:
- default
postgres:
image: postgres:14-alpine
volumes:
- "postgres_data:/var/lib/postgresql/data"
- "/var/run/postgresql:/var/run/postgresql"
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
volumes:
postgres_data:
typesense_data:
redis_data: