forked from hmjatt/devops-ExpendiTrack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (65 loc) · 1.34 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
version: '3.8'
services:
db:
build:
context: ./db
dockerfile: Dockerfile
volumes:
- db_data:/var/lib/mysql
networks:
- app_network
ports:
- "3306:3306"
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://db:3306/Expendi?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME: sa
SPRING_DATASOURCE_PASSWORD: password
depends_on:
db:
condition: service_healthy
networks:
- app_network
ports:
- "8080:8080"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
depends_on:
- backend
networks:
- app_network
ports:
- "3000:3000"
selenium:
build:
context: ./selenium-grid
dockerfile: Dockerfile
volumes:
- /dev/shm:/dev/shm
depends_on:
- backend
- frontend
networks:
- app_network
selenium-tests:
build:
context: ./selenium-tests
dockerfile: Dockerfile
depends_on:
selenium:
condition: service_healthy
environment:
- SELENIUM_REMOTE_URL=http://selenium:4444/wd/hub
- APP_BASE_URL=http://frontend
networks:
- app_network
networks:
app_network:
driver: bridge
volumes:
db_data: