-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.ci.yml
42 lines (38 loc) · 1.35 KB
/
docker-compose.ci.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
version: "2.4"
services:
server:
image: "districtbuilder:${GIT_COMMIT}"
volumes:
- "/var/cache/district-builder-${EXECUTOR_NUMBER}-server-node-modules:/home/node/app/server/node_modules"
client:
image: node:16-bullseye-slim
volumes:
- "/var/cache/district-builder-${EXECUTOR_NUMBER}-client-node-modules:/home/node/app/node_modules"
manage:
image: "districtbuilder-manage:${GIT_COMMIT}"
volumes:
- "/var/cache/district-builder-${EXECUTOR_NUMBER}-server-node-modules:/home/node/app/server/node_modules"
- "/var/cache/district-builder-${EXECUTOR_NUMBER}-manage-node-modules:/home/node/app/manage/node_modules"
shellcheck:
image: koalaman/shellcheck:stable
volumes:
- ./:/usr/local/src
working_dir: /usr/local/src
terraform:
image: quay.io/azavea/terraform:1.0.0
volumes:
- ./:/usr/local/src
- $HOME/.aws:/root/.aws:ro
environment:
- AWS_PROFILE=${AWS_PROFILE:-district-builder}
- GIT_COMMIT=${GIT_COMMIT}
- GITHUB_SHA
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
- DB_DEBUG=1
- DB_SETTINGS_BUCKET=${DB_SETTINGS_BUCKET:-districtbuilder-staging-config-us-east-1}
- DB_ROLLBAR_ACCESS_TOKEN
- DB_DEPLOYMENT_ENVIRONMENT=${DB_DEPLOYMENT_ENVIRONMENT:-staging}
working_dir: /usr/local/src
entrypoint: bash