-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (72 loc) · 1.89 KB
/
docker-compose.yml
File metadata and controls
76 lines (72 loc) · 1.89 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
services:
app:
image: ghcr.io/vleerapp/api:latest
restart: always
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/vleer_api
- SCRAPE_DATABASE_URL=postgres://postgres:postgres@localhost:5432/apple_music_scrape
- MANTICORE_URL=http://manticore:9308
- RUST_LOG=info
depends_on:
postgres:
condition: service_healthy
manticore:
condition: service_healthy
networks:
- vleer_api-network
postgres:
image: timescale/timescaledb-ha:pg17
restart: unless-stopped
ports:
- "5434:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: vleer_api
PGDATA: /var/lib/postgresql/data
volumes:
- postgres:/var/lib/postgresql/data
command: postgres -c shared_buffers=512MB -c max_connections=200 -c work_mem=16MB
shm_size: 1g
post_start:
- command: chown -R 1000:1000 /var/lib/postgresql/data
user: root
networks:
vleer_api-network:
aliases:
- postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d vleer_api" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
manticore:
image: manticoresearch/manticore:7.0.0
container_name: manticore
restart: unless-stopped
environment:
- MANTICORE_CONFIG=/etc/manticoresearch/manticore.conf
ports:
- "9308:9308"
- "9312:9312"
- "9313:9313"
volumes:
- manticore_data:/var/lib/manticore
networks:
vleer_api-network:
aliases:
- manticore
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9308/sql -d 'mode=raw&query=SELECT 1' || exit 1"]
interval: 30s
timeout: 10s
retries: 5
volumes:
postgres:
manticore_data:
networks:
vleer_api-network:
driver: bridge