-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
78 lines (73 loc) · 1.8 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
version: "3.8"
services:
app:
&defaults
command: sh -c 'yarn dev'
hostname: backstage.local
platform: linux/amd64
image: backstage:dev
build:
context: .
target: dev
working_dir: /app
volumes:
- ./app:/app
ports:
- 3000:3000
- 7007:7007
environment:
- ARGOCD_AUTH_TOKEN=$ARGOCD_AUTH_TOKEN
- AUTH_GITHUB_CLIENT_ID=$AUTH_GITHUB_CLIENT_ID
- AUTH_GITHUB_CLIENT_SECRET=$AUTH_GITHUB_CLIENT_SECRET
- ENV=development
- GITHUB_ACCESS_TOKEN=$GITHUB_ACCESS_TOKEN
- GIT_DISCOVERY_ACROSS_FILESYSTEM=1
- GRAFANA_TOKEN=$GRAFANA_TOKEN
- K8S_TOKEN=$K8S_TOKEN
- K8S_URL=$K8S_URL
- PGDATABASE=backstage
- POSTGRES_DATABASE=backstage
- POSTGRES_HOST=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- SONARQUBE_TOKEN=$SONARQUBE_TOKEN
- TECHDOCS_BUCKET=$TECHDOCS_BUCKET
- AWS_ACCESS_KEY_ID=$TECHDOCS_AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$TECHDOCS_AWS_SECRET_ACCESS_KEY
- AWS_REGION=us-east-1
depends_on:
- postgres
prd:
<<: *defaults
image: backstage:prd-local
build:
context: .
volumes: []
command: sh -c "node packages/backend --config app-config.yaml"
cmd:
<<: *defaults
working_dir: /app
volumes:
- ./app:/app
test:
<<: *defaults
command: 'yarn test:all'
# command: 'yarn tsc'
environment:
- ENVIRONMENT=development
volumes:
- ./app:/app
postgres:
image: postgres:latest
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=backstage
- PGDATA=/var/lib/postgresql/data
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
volumes:
pgdata: {}