-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (47 loc) · 1001 Bytes
/
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
services:
chromium:
shm_size: "2g"
image: seleniarm/standalone-chromium:113.0
ports:
- 4444:4444
- 7900:7900
- 5900:5900
networks:
- wp-bot-eonus
volumes:
- type: volume
source: seldata
target: /home/seluser
environment:
- SE_SCREEN_WIDTH=500
- SE_SCREEN_HEIGHT=500
- SE_START_NO_VNC=false
- SE_START_VNC=false
- SE_NODE_MAX_SESSIONS=3
healthcheck:
test: ["CMD", "curl", "-f", "http://0.0.0.0:4444/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
app:
build:
dockerfile: Dockerfile
command: ["python3", "main.py"]
networks:
- wp-bot-eonus
ports:
- 80:80
working_dir: /app
volumes:
- /Users/enes/Desktop/WhatsappBot:/app
environment:
- IP_ADDR=chromium
depends_on:
chromium:
condition: service_healthy
volumes:
seldata:
networks:
wp-bot-eonus:
name: wp-bot-eonus