-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-cicd.yml
89 lines (76 loc) · 1.77 KB
/
docker-compose-cicd.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
version: '3.8'
services:
selenium:
image: selenium/standalone-chrome
environment:
- HUB_PORT_4444_TCP_ADDR=hub
- HUB_PORT_4444_TCP_PORT=4444
- START_XVFB=true
shm_size: '2gb'
#expose:
#- 4444
#- 7900
#- 5900
#ports:
# - 7900:7900
#- 4444:4444
networks:
- selenium-grid
links:
- "agora-backend:agora-backend"
agora-backend:
image: argo.registry:5000/agora-backend
volumes:
- ./agora:/srv/agora/agora
- dist:/srv/agora/ui/dist
stdin_open: true
tty: true
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/ui/auth/login"]
interval: 1m30s
timeout: 20s
retries: 20
start_period: 5m
networks:
- selenium-grid
agora-frontend:
build:
context: ./ui
dockerfile: ./Dockerfile
links:
- "agora-backend:agora-backend"
depends_on:
- selenium
- agora-backend
volumes:
- ./ui:/srv/agora/ui
- dist:/srv/agora/ui/dist
- /srv/agora/ui/tmp
- /srv/agora/ui/node_modules
- /srv/agora/ui/bower_components
stdin_open: true
tty: true
selenium-python-tests:
build:
context: ./tests/selenium_tests
dockerfile: ./Dockerfile
volumes:
- ./tests/selenium_tests:/srv/agora/tests/selenium_tests
user: "1000:1000"
depends_on:
agora-backend:
condition: service_healthy
selenium:
condition: service_started
agora-frontend:
condition: service_started
networks:
- selenium-grid
links:
- "agora-backend:agora-backend"
- "selenium:selenium"
volumes:
dist:
networks:
selenium-grid: