This repository has been archived by the owner on Oct 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
78 lines (76 loc) · 1.84 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
version: "2"
services:
web-base:
build: .
command: gunicorn --reload --bind=0.0.0.0:8000 eahub.config.wsgi
ports:
- 8000:8000
volumes:
- ./data:/data:rw
env_file:
- .env
web:
extends: web-base
depends_on:
db:
condition: service_healthy
mail:
condition: service_started
links:
- db:postgres
volumes:
- .:/app:rw
web-e2e:
extends: web-base
depends_on:
db:
condition: service_healthy
mail:
condition: service_started
chrome:
condition: service_started
links:
- db:postgres
db:
image: postgres:13
ports:
- 5432:5432
environment:
POSTGRES_DB: db
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- .:/app:rw
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 7
start_period: 3s
mail:
image: dockage/mailcatcher:0.6.5
ports:
- 1025:1025
- 1080:1080
selenium-hub:
image: selenium/hub:3
container_name: selenium-hub
ports:
- 4444:4444
chrome:
image: selenium/node-chrome:3
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444
firefox:
image: selenium/node-firefox:3
volumes:
- /dev/shm:/dev/shm
depends_on:
- selenium-hub
environment:
- HUB_HOST=selenium-hub
- HUB_PORT=4444