-
-
Notifications
You must be signed in to change notification settings - Fork 323
/
docker-compose.react-scala.yml
executable file
·56 lines (52 loc) · 1.67 KB
/
docker-compose.react-scala.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
version: '3'
services:
apollo_scala_server:
build:
context: .
dockerfile: Dockerfile-scala
environment:
- SCALA_ENV=development
container_name: apollo_scala_server
working_dir: ${APP_DIR}/packages/server-scala
volumes:
- ./:${APP_DIR}:cached
- ./modules:${APP_DIR}/modules:cached
- ./packages/server-scala:${APP_DIR}/packages/server-scala:cached
- ./packages/server-scala/project/plugin.sbt:${APP_DIR}/packages/server-scala/project/plugin.sbt:cached
- ./packages/server-scala/project/build.properties:${APP_DIR}/packages/server-scala/project/build.properties:cached
- ./packages/server-scala/build.sbt:${APP_DIR}/packages/server-scala/build.sbt:cached
- ./packages/server-scala/src:${APP_DIR}/packages/server-scala/src:cached
- scala_server_sbt_cache:/root/.ivy2:cached
command: >
sh -c 'sbt ~reStart'
ports:
- 8080:8080
stdin_open: true
tty: true
apollo_client:
build:
context: .
dockerfile: Dockerfile
args:
APP_DIR: ${APP_DIR}
depends_on:
- apollo_scala_server
environment:
- NODE_ENV=development
- SERVER_HOST=apollo_scala_server:8080
container_name: apollo_client
tty: true
stdin_open: true
volumes:
- ./:${APP_DIR}
- ${APP_DIR}/build
- client_node_modules:${APP_DIR}/node_modules
working_dir: ${APP_DIR}
user: node
command: >
sh -c 'cmp -s yarn.lock node_modules/yarn.lock || yarn install --frozen-lockfile && cp -f yarn.lock node_modules/yarn.lock && yarn watch-client'
ports:
- 3000:3000
volumes:
scala_server_sbt_cache:
client_node_modules: