forked from raster-foundry/raster-foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
92 lines (84 loc) · 2.87 KB
/
docker-compose.test.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
80
81
82
83
84
85
86
87
88
89
90
91
92
version: "2.3"
services:
nginx-api:
image: raster-foundry-nginx-api:${GIT_COMMIT:-latest}
build:
context: ./nginx
dockerfile: Dockerfile.api
nginx-backsplash:
image: raster-foundry-nginx-backsplash:${GIT_COMMIT:-latest}
build:
context: ./nginx
dockerfile: Dockerfile.backsplash
app-frontend:
image: node:10
working_dir: /opt/raster-foundry/app-frontend/
volumes:
- ./app-frontend/.babelrc:/opt/raster-foundry/app-frontend/.babelrc
- ./app-frontend/config/:/opt/raster-foundry/app-frontend/config/
- ./nginx/srv/dist/:/opt/raster-foundry/app-frontend/dist/
- ./app-frontend/yarn.lock:/opt/raster-foundry/app-frontend/yarn.lock
- ./app-frontend/.eslintrc:/opt/raster-foundry/app-frontend/.eslintrc
- ./app-frontend/karma.conf.js:/opt/raster-foundry/app-frontend/karma.conf.js
- ./.node_modules:/opt/raster-foundry/app-frontend/node_modules
- ./app-frontend/package.json:/opt/raster-foundry/app-frontend/package.json
- ./app-frontend/src:/opt/raster-foundry/app-frontend/src
- ./app-frontend/webpack.config.js:/opt/raster-foundry/app-frontend/webpack.config.js
- ./docs/swagger/:/opt/swagger/
entrypoint: yarn
command: run build
api-server:
image: raster-foundry-api-server:${GIT_COMMIT:-latest}
build:
context: ./app-backend/api
dockerfile: Dockerfile
backsplash:
image: raster-foundry-backsplash:${GIT_COMMIT:-latest}
build:
context: ./app-backend/backsplash-server
dockerfile: Dockerfile
app-migrations:
image: raster-foundry-app-migrations:${GIT_COMMIT:-latest}
build:
context: ./app-backend/db
dockerfile: Dockerfile.migrations
volumes:
- $HOME/.coursier-cache:/root/.coursier-cache
batch:
image: raster-foundry-batch:${GIT_COMMIT:-latest}
build:
context: ./app-tasks
dockerfile: Dockerfile
volumes:
- ./app-tasks/rf/:/opt/raster-foundry/app-tasks/rf/
build:
image: raster-foundry-build:${GIT_COMMIT:-latest}
build:
context: ./app-backend
dockerfile: Dockerfile.build
env_file: .env
environment:
- COURSIER_CACHE=/root/.coursier
volumes:
- ./app-backend/:/opt/raster-foundry/app-backend/
- ./scratch/:/opt/raster-foundry/scratch/
- ./.git:/opt/raster-foundry/.git
- ./.bintray:/root/.bintray
- $HOME/.coursier:/root/.coursier
- $HOME/.sbt:/root/.sbt
- $HOME/.aws:/root/.aws:ro
- $HOME/.gnupg:/root/.gnupg:ro
working_dir: /opt/raster-foundry/app-backend/
entrypoint: ./sbt
lambda:
build:
context: app-lambda
dockerfile: Dockerfile.test
volumes:
- ./app-lambda/:/opt/raster-foundry/app-lambda/
working_dir: /opt/raster-foundry/app-lambda/
shellcheck:
image: koalaman/shellcheck:stable
volumes:
- ./:/usr/local/src
working_dir: /usr/local/src