-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
108 lines (100 loc) · 2.46 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.8"
services:
monitor:
build: ./httpd/
container_name: phplaravel_monitor
ports:
- "${HTTP_PORT}:80"
environment:
VIRTUALHOST: ${VIRTUALHOST}
volumes:
- "./httpd/php-laravel-monitor:/var/www/html"
networks:
- web_monitor
- postgresql_monitor
- selenium_monitor
#restart: always
pgsql:
container_name: postgresql_monitor
image: postgres:13
ports:
- "${POSTGRES_PORT}:5432"
environment:
PGPASSWORD: ${PGPASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- "./postgresql:/var/lib/postgresql/data"
networks:
- postgresql_monitor
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "monitor", "-U", "postgres"]
#restart: always
pgadmin:
container_name: pgadmin_monitor
image: dpage/pgadmin4
depends_on:
- pgsql
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
volumes:
- "./pgadmin:/root/.pgadmin"
ports:
- "${PGADMIN_PORT}:80"
networks:
- postgresql_monitor
#restart: always
selenium-hub:
container_name: selenium_monitor
image: selenium/hub:4.0.0-rc-1-prerelease-20210823
depends_on:
- monitor
environment:
- logger.level=DEBUG
ports:
- "4442:4442"
- "4443:4443"
- "4444:4444"
networks:
- selenium_monitor
chrome:
container_name: chrome_monitor
image: selenium/node-chrome:4.0.0-rc-1-prerelease-20210823
shm_size: 2gb
depends_on:
- selenium-hub
environment:
- SE_EVENT_BUS_HOST=selenium-hub
- SE_EVENT_BUS_PUBLISH_PORT=4442
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
- logger.level=DEBUG
ports:
- "6900:5900"
networks:
- selenium_monitor
- web_monitor
extra_hosts:
- "monitor.com.ve:172.26.0.2"
# firefox:
# container_name: firefox_monitor
# image: selenium/node-firefox:4.0.0-rc-1-prerelease-20210823
# shm_size: 2gb
# depends_on:
# - selenium-hub
# environment:
# - SE_EVENT_BUS_HOST=selenium-hub
# - SE_EVENT_BUS_PUBLISH_PORT=4442
# - SE_EVENT_BUS_SUBSCRIBE_PORT=4443
# ports:
# - "6902:5900"
# networks:
# - selenium_monitor
networks:
web_monitor:
external: true
postgresql_monitor:
external: true
selenium_monitor:
external: true