feat(docker): add Docker Compose for PostgreSQL service
All checks were successful
CI / Get Changed Files (pull_request) Successful in 19s
CI / Checkstyle Main (pull_request) Has been skipped
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Successful in 2m4s
CI / Docker frontend validation (pull_request) Successful in 10s
All checks were successful
CI / Get Changed Files (pull_request) Successful in 19s
CI / Checkstyle Main (pull_request) Has been skipped
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Successful in 2m4s
CI / Docker frontend validation (pull_request) Successful in 10s
This commit is contained in:
parent
93d002e1e6
commit
70cb067d35
4 changed files with 23 additions and 1926 deletions
18
compose.yml
Normal file
18
compose.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres:17.4
|
||||||
|
container_name: casino-db
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: postgresdb
|
||||||
|
POSTGRES_USER: postgres_user
|
||||||
|
POSTGRES_PASSWORD: postgres_pass
|
||||||
|
healthcheck:
|
||||||
|
test: "exit 0"
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
Binary file not shown.
|
@ -1,49 +1,13 @@
|
||||||
volumes:
|
volumes:
|
||||||
keycloak_data:
|
casino-db-data:
|
||||||
postgres_data_keycloak_db:
|
|
||||||
postgres_data:
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
keycloak_lf12:
|
db:
|
||||||
image: quay.io/keycloak/keycloak:23.0
|
|
||||||
volumes:
|
|
||||||
- keycloak_data:/opt/keycloak/data
|
|
||||||
- ./imports:/opt/keycloak/data/import
|
|
||||||
command:
|
|
||||||
- start-dev
|
|
||||||
- --import-realm
|
|
||||||
environment:
|
|
||||||
KC_DB: postgres
|
|
||||||
KC_DB_URL_HOST: keycloakdb_svr
|
|
||||||
KC_DB_URL_DATABASE: keycloakdb
|
|
||||||
KC_DB_PASSWORD: postgres_pass
|
|
||||||
KC_DB_USERNAME: postgres_user
|
|
||||||
KC_DB_SCHEMA: public
|
|
||||||
KEYCLOAK_ADMIN: admin
|
|
||||||
KEYCLOAK_ADMIN_PASSWORD: admin
|
|
||||||
ports:
|
|
||||||
- "9090:8080"
|
|
||||||
depends_on:
|
|
||||||
keycloakdb_svr:
|
|
||||||
condition: service_healthy
|
|
||||||
|
|
||||||
keycloakdb_svr:
|
|
||||||
image: postgres:17.4
|
image: postgres:17.4
|
||||||
|
container_name: casino-db
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- postgres_data_keycloak_db:/var/lib/postgresql/data
|
- casino-db-data:/var/lib/postgresql/data
|
||||||
environment:
|
|
||||||
POSTGRES_DB: keycloakdb
|
|
||||||
POSTGRES_USER: postgres_user
|
|
||||||
POSTGRES_PASSWORD: postgres_pass
|
|
||||||
healthcheck:
|
|
||||||
test: "exit 0"
|
|
||||||
ports:
|
|
||||||
- "9433:5432"
|
|
||||||
|
|
||||||
postgres_db:
|
|
||||||
image: postgres:17.4
|
|
||||||
volumes:
|
|
||||||
- postgres_data:/var/lib/postgresql/data
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: postgresdb
|
POSTGRES_DB: postgresdb
|
||||||
POSTGRES_USER: postgres_user
|
POSTGRES_USER: postgres_user
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Reference in a new issue