forked from OndrejVane/AntiPatternDetectionApp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (49 loc) · 1.62 KB
/
docker-compose.yml
File metadata and controls
54 lines (49 loc) · 1.62 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
version: '3.3'
services:
#service 1: definition of mysql database
db:
image: mysql:latest
container_name: mysql-db
environment:
- MYSQL_ROOT_PASSWORD=<password for root>
ports:
- "3306:3306"
restart: always
volumes:
- ./db/spade.sql:/usr/local/etc/spade.sql
- ./db/spade-views.sql:/usr/local/etc/spade-views.sql
- ./db/spade-config.sql:/usr/local/etc/spade-config.sql
#service 2: definition of phpMyAdmin
# phpmyadmin:
# image: phpmyadmin/phpmyadmin:latest
# container_name: my-php-myadmin
# ports:
# - "8082:80"
# restart: always
# depends_on:
# - db
# environment:
# SPRING_DATASOURCE_USERNAME: <username for phpMyAdmin>
# SPRING_DATASOURCE_PASSWORD: <password for phpMyAdmin>
# volumes:
# - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini # add configuration due to max upload file size
#service 3: definition of your spring-boot app
antipatterndetection:
image: anti-pattern-detection
container_name: anti-pattern-detection-app
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080" # spring app will starts on port 8080 (<output_port:port_inside_of_docker>)
restart: always
depends_on:
- db
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql-db:3306/spade
SPRING_DATASOURCE_USERNAME: <username for DB connection>
SPRING_DATASOURCE_PASSWORD: <password for DB connection>
DATA_PATH: usr/local/etc/data/
volumes:
- ./data/:/usr/local/etc/data/
- ./src/main/resources/application.properties:/application.properties