-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.17 KB
/
docker-compose.yml
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
version: '3.9'
services:
selenium:
container_name: 'selenium_container'
image: seleniarm/standalone-chromium
privileged: true
hostname: chrome
restart: unless-stopped
shm_size: 2gb
environment:
- SE_NODE_MAX_SESSIONS=1
- SE_NODE_OVERRIDE_MAX_SESSIONS=true
- START_XVFB=false
ports:
- "4444:4444"
networks:
- selenium_nw
app:
container_name: server_container
build:
context: ./server
dockerfile: Dockerfile
restart: unless-stopped
networks:
- backend_nw
volumes:
- ./server/:/server
- ./scrape/data/:/server/data
ports:
- "3000:3000"
scrape:
container_name: scrape_container
build:
context: ./scrape
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- selenium
networks:
- selenium_nw
volumes:
- ./scrape/:/scrape
ports:
- 8000:8000
environment:
- PYTHONUNBUFFERED=1
- REMOTE_SELENIUM_URL=http://selenium:4444
command: 'python app.py'
networks:
backend_nw:
name: services_network
driver: bridge
selenium_nw:
name: selenium_network
driver: bridge