-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from timurgaleev/psql
Postgres and bug fix
- Loading branch information
Showing
25 changed files
with
199 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# sample-spring | ||
# demo-spring | ||
|
||
[](https://github.com/timurgaleev/sample-spring/releases) | ||
[](https://github.com/timurgaleev/demo-spring/releases) | ||
|
||
[](https://hub.docker.com/r/timurgaleev/sample-spring) | ||
[](https://hub.docker.com/r/timurgaleev/demo-spring) | ||
|
||
## Docker | ||
|
||
```bash | ||
docker pull timurgaleev/sample-spring | ||
docker pull timurgaleev/demo-spring | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ include "sample.fullname" . }} | ||
name: {{ include "demo.fullname" . }} | ||
labels: | ||
release: prometheus-operator | ||
{{- include "sample.labels" . | nindent 4 }} | ||
{{- include "demo.labels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: {{ include "sample.fullname" . }} | ||
app: {{ include "demo.fullname" . }} | ||
endpoints: | ||
- interval: 10s | ||
port: tcp-jmx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: "{{ include "sample.fullname" . }}-test-connection" | ||
name: "{{ include "demo.fullname" . }}-test-connection" | ||
labels: | ||
{{- include "sample.labels" . | nindent 4 }} | ||
{{- include "demo.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": test-success | ||
spec: | ||
containers: | ||
- name: wget | ||
image: busybox | ||
command: ['wget'] | ||
args: ['{{ include "sample.fullname" . }}:{{ .Values.service.port }}'] | ||
args: ['{{ include "demo.fullname" . }}:{{ .Values.service.port }}'] | ||
restartPolicy: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: '3.3' | ||
services: | ||
postgres: | ||
image: postgres:11.5 | ||
container_name: postgres | ||
environment: | ||
- POSTGRES_PASSWORD=postgres | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_DB=postgres | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- ./target/postgres/data:/var/lib/postgresql/data | ||
|
||
pgadmin: | ||
image: dpage/pgadmin4 | ||
container_name: pg_admin | ||
environment: | ||
- [email protected] | ||
- PGADMIN_DEFAULT_PASSWORD=postgres | ||
ports: | ||
- "5555:80" | ||
volumes: | ||
- ./target/pgadmin/data:/var/lib/pgadmin | ||
links: | ||
- postgres | ||
|
||
demo-spring: | ||
container_name: demo-spring | ||
depends_on: | ||
- postgres | ||
build: | ||
context: . | ||
links: | ||
- postgres | ||
ports: | ||
- 8080:8080 | ||
restart: always | ||
environment: | ||
- DATABASE_ADDRESS=postgres | ||
- DATABASE_PORT=5432 | ||
- DATABASE_NAME=postgres | ||
- DATABASE_USERNAME=postgres | ||
- DATABASE_PASSWORD=postgres |
Oops, something went wrong.