-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·49 lines (47 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·49 lines (47 loc) · 1.17 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
services:
postgres:
image: postgis/postgis:15-3.4-alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: your_secure_password_here
POSTGRES_DB: scraper_db
ports:
- "5432:5432"
volumes:
- ./db/schema.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U user -d scraper_db" ]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: ./api/Dockerfile # Adjust paths as needed
ports:
- "3000:3000"
environment:
- DB_HOST=postgres
- DB_USER=user
- DB_PASS=your_secure_password_here
- DB_NAME=scraper_db
- DB_PORT=5432
- SOCKS5_PROXY=host.docker.internal:1080
- USE_PROXY_CHAIN=false
- JWT_SECRET=your_jwt_secret_here
- PROXY_LIST_URL=your_proxy_list_url_here
depends_on:
postgres:
condition: service_healthy
volumes:
- ./data:/app/data
extra_hosts:
- "host.docker.internal:host-gateway"
frontend:
build:
context: .
dockerfile: ./web/Dockerfile # Adjust paths as needed
ports:
- "80:80"
depends_on:
- backend