-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (83 loc) · 2.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (83 loc) · 2.19 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
77
78
79
80
81
82
83
84
85
86
87
88
services:
postgres:
image: pgvector/pgvector:pg16
container_name: leadecho-postgres
ports:
- "5433:5432"
environment:
POSTGRES_USER: leadecho
POSTGRES_PASSWORD: leadecho
POSTGRES_DB: leadecho_dev
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U leadecho"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: leadecho-redis
ports:
- "6380:6379"
command: redis-server --save 60 1 --loglevel warning
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
pinchtab:
image: pinchtab/pinchtab:latest
container_name: leadecho-pinchtab
ports:
- "127.0.0.1:9867:9867"
user: root
entrypoint: ["sh", "-c"]
command:
- |
mkdir -p /data/.pinchtab && \
chown -R pinchtab:pinchtab /data/.pinchtab && \
sed 's|PINCHTAB_TOKEN_PLACEHOLDER|${PINCHTAB_TOKEN}|g' /tmpl/config.json > /data/.pinchtab/config.json && \
chown pinchtab:pinchtab /data/.pinchtab/config.json && \
exec su pinchtab -c "exec pinchtab server"
environment:
PINCHTAB_TOKEN: ${PINCHTAB_TOKEN:-changeme}
BRIDGE_HEADLESS: "true"
BRIDGE_STEALTH: full
BRIDGE_BLOCK_IMAGES: "true"
BRIDGE_BLOCK_MEDIA: "true"
BRIDGE_MAX_TABS: "5"
volumes:
- ./pinchtab/config.json:/tmpl/config.json:ro
- pinchtab_state:/data/.pinchtab/profiles
mem_limit: 2g
cpus: "2.0"
profiles:
- browser
camoufox:
build: ./camoufox-sidecar
container_name: leadecho-camoufox
ports:
- "127.0.0.1:9868:9868"
environment:
CAMOUFOX_TOKEN: ${CAMOUFOX_TOKEN:-changeme}
CAMOUFOX_PORT: "9868"
DISPLAY: ":99"
mem_limit: 512m
profiles:
- browser-pro
scrapling:
build: ./scrapling-sidecar
container_name: leadecho-scrapling
ports:
- "127.0.0.1:9869:9869"
environment:
SCRAPLING_TOKEN: ${SCRAPLING_TOKEN:-changeme}
SCRAPLING_PORT: "9869"
SCRAPLING_STEALTH: "true"
mem_limit: 1g
profiles:
- browser-scrapling
volumes:
pgdata:
pinchtab_state: