This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathdocker-compose.yaml
76 lines (61 loc) · 1.5 KB
/
docker-compose.yaml
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
version: '3'
services:
tor:
container_name: tor
build:
context: ./build/package/tor
restart: always
healthcheck:
test: ["CMD-SHELL", "curl -sS --socks5-hostname localhost:9050 https://check.torproject.org/api/ip | grep '\"IsTor\": *true'"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
database:
condition: service_healthy
network_mode: host
pryingdeep:
container_name: pryingdeep
build:
context: .
dockerfile: ./Dockerfile
command:
- '/bin/sh'
- '-c'
- './pryingdeep crawl'
depends_on:
tor:
condition: service_healthy
network_mode: host
database:
container_name: database
image: postgres:15.4-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_HOST=localhost
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_PORT=5432
- POSTGRES_TESTING_NAME=testing
- POSTGRES_USER=postgres
command:
- "postgres"
- "-c"
- "log_destination=stderr"
- "-c"
- "logging_collector=on"
- "-c"
- "log_directory=/var/lib/postgresql/data/pg_log"
- "-c"
- "work_mem=1024MB"
- "-c"
- "maintenance_work_mem=1024MB"
volumes:
- ./pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready", -U postgres ]
interval: 30s
timeout: 60s
retries: 5
restart: always