-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (77 loc) · 1.83 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
79
version: "2" # to use the older docker compose version installed on the storage server
services:
corpus:
build:
context: .
dockerfile: Dockerfile-corpus
volumes:
- ${JARS_DIRECTORY}:/usr/src/app/jars
- ./config.properties:/usr/src/app/config.properties
- ./logs:/usr/src/app/logs
- ${PATHS_FILE}:/usr/src/app/paths.txt
environment:
- DIRECTORY=jars
- PATHS_FILE=paths.txt
depends_on:
- db
app:
build:
context: .
dockerfile: Dockerfile-app
volumes:
- ${JARS_DIRECTORY}:/usr/src/app/jars
- ./config.properties:/usr/src/app/config.properties
- ./logs:/usr/src/app/logs
ports:
- "8080:8080"
environment:
- DIRECTORY=jars
- PORT=8080
depends_on:
- db
- mongodb
script:
build:
context: .
dockerfile: Dockerfile-script
volumes:
- ${JARS_DIRECTORY}:/usr/.m2/repository
profiles: [ "script" ]
command: [ "node", "build/collect_file_size.js", "/usr/.m2/repository" ]
env_file:
- ./.env
environment:
- DIRECTORY=/usr/.m2/repository
- MYSQL_HOST=db
depends_on:
- db
mongodb:
image: mongo:latest
ports:
- "27072:27017"
volumes:
- ${MONGODB_DATA_LOCATION}:/data/db
db:
build:
context: .
dockerfile: Dockerfile-db
ports:
- "3306:3306"
volumes:
- ./my-custom.cnf:/etc/mysql/mariadb.conf.d/my-custom.cnf
- ${MARIADB_DATA_LOCATION}:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db:mysql
ports:
- "8080:80"
environment:
- PMA_HOST=db
depends_on:
- db