-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (35 loc) · 1.01 KB
/
docker-compose.yaml
File metadata and controls
37 lines (35 loc) · 1.01 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
services:
typesense:
image: typesense/typesense:29.0
cpus: 1
mem_limit: 256M
ports:
- "8108:8108"
environment:
- TYPESENSE_API_KEY=local-typesense-api-key
- TYPESENSE_DATA_DIR=/data
volumes:
- typesense-data:/data
extra_hosts:
- "host.docker.internal:host-gateway"
typesense-scraper:
build:
context: ./docker
dockerfile: ./typesense-scraper.dockerfile
cpus: 1
mem_limit: 256M
environment:
- TYPESENSE_API_KEY=local-typesense-api-key
- TYPESENSE_HOST=typesense
- TYPESENSE_PORT=8108
- TYPESENSE_PROTOCOL=http
- CONFIG=/typesense-scraper.config.json
volumes:
# IMPORTANT: TypeSense Scraper wants to update this file
# Make sure to mount it as a volume with read-write permissions
# It is okay to commit the changes it makes
- ./docker/typesense-scraper.config.json:/typesense-scraper.config.json:rw
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
typesense-data: