-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.32 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
version: "2.4"
networks:
hattrick_network:
name: hattrick_network
services:
hattrick-clickhouse:
image: clickhouse/clickhouse-server:24.1.2.5
container_name: hattrick-clickhouse
expose:
- "8123"
ports:
- 9000:9000
- 8123:8123
networks:
- hattrick_network
volumes:
- ./sql/init_scripts:/docker-entrypoint-initdb.d
hattid-web:
image: mozilla/sbt:11.0.8_1.3.13
container_name: hattid-web
expose:
- 9001
ports:
- "9001:9001"
networks:
- hattrick_network
volumes:
- ./:/app
- ~/.m2:/root/.m2
- ~/.sbt:/root/.sbt
- ~/.ivy2:/root/.ivy2
- ./build.properties:/app/project/build.properties #need to downgrade sbt version at docker. Bug: https://github.com/sbt/sbt/issues/6101#issuecomment-765106609
command: bash -c "cd /app && sbt clean && sbt -Dhttp.port=9001 -Dconfig.file=\"/app/web/conf/application-docker.conf\" web/run"
depends_on:
- hattrick-clickhouse
hattid-front:
image: node:16
container_name: hattid-front
stdin_open: true
expose:
- 3000
ports:
- "3000:3000"
networks:
- hattrick_network
depends_on:
- hattid-web
volumes:
- ./front:/app
command: bash -c "cd /app && npm install && REACT_APP_HATTID_SERVER_URL=http://localhost:9001 npm start"