-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (67 loc) · 1.36 KB
/
docker-compose.yml
File metadata and controls
67 lines (67 loc) · 1.36 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
version: "3.8"
services:
psql_server:
image: postgres:alpine3.17
container_name: psql_server
ports:
- "5433:5432"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=wildberries
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- .:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d wildberries"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- wb_net
geckodrive:
image: instrumentisto/geckodriver
container_name: gecko_container
ports:
- "4444:4444"
depends_on:
- psql_server
command: --binary=/opt/firefox/firefox --log=debug --host=0.0.0.0
networks:
- wb_net
bot:
build:
context: .
dockerfile: bot/Dockerfile
container_name: bot
env_file:
- .env
environment:
HOST: psql_server
volumes:
- ./bot:/app
depends_on:
- psql_server
networks:
- wb_net
parser:
build:
context: .
dockerfile: script/Dockerfile
container_name: parser
env_file:
- .env
environment:
HOST: psql_server
volumes:
- ./script:/app
depends_on:
- psql_server
- geckodrive
networks:
- wb_net
networks:
wb_net:
external: true
name: wb_net