-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
129 lines (129 loc) · 4.69 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
services:
postgres:
image: postgres:13.15
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=mypassword
- POSTGRES_DB=kuberpult
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 1s
timeout: 5s
retries: 3
cd-service:
image: europe-west3-docker.pkg.dev/fdc-public-docker-registry/kuberpult/kuberpult-cd-service:local
environment:
- LOG_LEVEL=INFO
- KUBERPULT_DISABLE_QUEUE=true
- KUBERPULT_GIT_URL=/kp/kuberpult/repository_remote
- KUBERPULT_DB_LOCATION=postgres
- KUBERPULT_DB_NAME=kuberpult
- KUBERPULT_DB_USER_NAME=postgres
- KUBERPULT_DB_USER_PASSWORD=mypassword
- KUBERPULT_DB_MIGRATIONS_LOCATION=/kp/database/migrations/postgres/
- KUBERPULT_DB_OPTION=postgreSQL
- KUBERPULT_DB_WRITE_ESL_TABLE_ONLY=false
- KUBERPULT_GIT_BRANCH=master
- KUBERPULT_GIT_NETWORK_TIMEOUT=120s
- KUBERPULT_DEX_MOCK=false
- KUBERPULT_DEX_ENABLED=false
- KUBERPULT_DEX_RBAC_POLICY_PATH=/etc/policy.csv
- KUBERPULT_DEX_RBAC_TEAM_PATH=/etc/team.csv
- KUBERPULT_DEX_MOCK_ROLE=developer
- KUBERPULT_GIT_WRITE_COMMIT_DATA=false
- KUBERPULT_MAXIMUM_QUEUE_SIZE=2
- KUBERPULT_ALLOW_LONG_APP_NAMES=true
- KUBERPULT_ARGO_CD_GENERATE_FILES=true
- KUBERPULT_DB_SSL_MODE=disable
- KUBERPULT_DB_MAX_OPEN_CONNECTIONS=10
- KUBERPULT_DB_MAX_IDLE_CONNECTIONS=5
- KUBERPULT_ALLOWED_DOMAINS=localhost
ports:
- "8080:8080"
- "8443:8443"
volumes:
- ./services/cd-service:/kp/kuberpult
- ./database:/kp/database
stop_grace_period: 0.5s
depends_on:
postgres:
condition: service_healthy
manifest-repo-export-service:
image: europe-west3-docker.pkg.dev/fdc-public-docker-registry/kuberpult/kuberpult-manifest-repo-export-service:local
environment:
- LOG_LEVEL=INFO
- KUBERPULT_DB_LOCATION=postgres
- KUBERPULT_DB_MIGRATIONS_LOCATION=/kp/database/migrations/postgres/
- KUBERPULT_DB_OPTION=postgreSQL
- KUBERPULT_GIT_NETWORK_TIMEOUT=3s
- KUBERPULT_DB_NAME=kuberpult
- KUBERPULT_DB_USER_NAME=postgres
- KUBERPULT_DB_USER_PASSWORD=mypassword
- KUBERPULT_DB_AUTH_PROXY_PORT=5432
- KUBERPULT_GIT_URL=/kp/kuberpult/repository_remote
- KUBERPULT_GIT_BRANCH=master
- KUBERPULT_GIT_SSH_KEY=/etc/ssh/identity
- KUBERPULT_GIT_SSH_KNOWN_HOSTS=/etc/ssh/ssh_known_hosts
- KUBERPULT_ENABLE_METRICS=false
- KUBERPULT_DOGSTATSD_ADDR=127.0.0.1:8125
- KUBERPULT_ARGO_CD_GENERATE_FILES=true
- KUBERPULT_RELEASE_VERSIONS_LIMIT=20
- KUBERPULT_NETWORK_TIMEOUT_SECONDS=120
- KUBERPULT_DB_SSL_MODE=disable
- KUBERPULT_DB_MAX_OPEN_CONNECTIONS=5
- KUBERPULT_DB_MAX_IDLE_CONNECTIONS=1
- KUBERPULT_MINIMIZE_EXPORTED_DATA=true
- KUBERPULT_VERSION=v0.1.2
volumes:
- ./services/cd-service:/kp/kuberpult
- ./database:/kp/database
ports:
- "8090:8080"
- "8444:8443"
stop_grace_period: 0.5s
depends_on:
cd-service:
condition: service_started
postgres:
condition: service_healthy
frontend-service:
image: europe-west3-docker.pkg.dev/fdc-public-docker-registry/kuberpult/kuberpult-frontend-service:local
# Note: this `container_name` needs to be the same as in `package.json`
container_name: kuberpult-frontend-service
environment:
- KUBERPULT_CDSERVER=cd-service:8443
- KUBERPULT_VERSIONSERVER=manifest-repo-export-service:8443
- KUBERPULT_CD_SERVER_SECURE=false
- LOG_LEVEL=INFO
- KUBERPULT_ALLOWED_ORIGINS=localhost:*
- KUBERPULT_GIT_AUTHOR_NAME=user-local-dev-docker-compose
- KUBERPULT_ARGOCD_BASE_URL=https://cd.dev.freiheit.systems/
- KUBERPULT_ARGOCD_NAMESPACE=tools
- KUBERPULT_SOURCE_REPO_URL=https://github.com/freiheit-com/kuberpult/commit/{commit}
- KUBERPULT_MANIFEST_REPO_URL=https://github.com/freiheit-com/fdc-standard-setup-dev-env-manifest/tree/{branch}/{dir}
- KUBERPULT_GIT_BRANCH=master
- KUBERPULT_API_ENABLE_DESPITE_NO_AUTH=true
- KUBERPULT_BATCH_CLIENT_TIMEOUT=2m
- KUBERPULT_DEX_RBAC_POLICY_PATH=/etc/policy.csv
- KUBERPULT_GRPC_MAX_RECV_MSG_SIZE=8
ports:
- "8081:8081"
depends_on:
- cd-service
volumes:
- .:/kp/kuberpult
stop_grace_period: 0.5s
ui:
image: ui:local
container_name: kuberpult-ui
ports:
- "3000:3000"
depends_on:
- frontend-service
volumes:
- ./services/frontend-service/src:/kp/src
- ./services/frontend-service/public:/kp/public
stop_grace_period: 0.5s