-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (79 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
85 lines (79 loc) · 1.75 KB
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
# docker-compose.yml: docker-compose configuration file "Hermes" capstone project
networks:
app-network:
driver: bridge
volumes:
mysql-data:
services:
web-scanner:
build:
context: ./web-scanner
dockerfile: Dockerfile
ports:
- "8000:8000"
networks:
- app-network
extra_hosts:
- "host.docker.internal:host-gateway"
gui:
build:
context: ./gui
dockerfile: Dockerfile
ports:
- "5173:5173"
volumes:
- ./gui/src:/usr/src/app/src
depends_on:
- web-scanner
networks:
- app-network
db:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD}
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
networks:
- app-network
server:
build:
context: ./weak-website/server
dockerfile: Dockerfile.prod
ports:
- "8080:8080"
volumes:
- ./server/src:/usr/src/app/src
environment:
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_DATABASE=${DB_DATABASE}
- SWAGGER_ENABLED=${SWAGGER_ENABLED}
- SERVER_PORT=${SERVER_PORT}
- SERVER_PROTOCOL=${PROTOCOL}
- SERVER_HOST=${HOST}
- CLIENT_URL=${CLIENT_URL}
- JWT_SECRET=${JWT_SECRET}
depends_on:
- db
networks:
- app-network
client:
build:
context: ./weak-website/client
dockerfile: Dockerfile.prod
environment:
- VITE_CLIENT_PORT=${CLIENT_PORT}
- VITE_SERVER_URL=${SERVER_URL}
ports:
- "80:80"
depends_on:
- server
networks:
- app-network