Skip to content

Commit

Permalink
docker updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelSlavka committed Nov 1, 2024
1 parent f1e544a commit a260771
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 22 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

Repo contains infrastructure and keycloak and db form site repositories.

To start using keycloak. After running docker open `http://localhost:8080` then in master dropdown, click add realm. Then import `dev-realm-export.json`. Then create a nwe user under the new site realm. And set their passwd and roles to at least USER role.
For setup raname `.env.dist` to just `.env`. It will work with default values in dev dicker compose if other projects are also default.

To start using keycloak. After running docker open `http://localhost:8080` then in master dropdown, click add realm. Then import `dev-realm-export.json`. Then create a new user under the new site realm. And set their passwd and roles to at least USER role.

This module has only images so no need to build to run the main proxy use following:

Expand Down
24 changes: 4 additions & 20 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@ volumes:
driver: local

services:
nginx:
image: nginx:mainline-alpine
container_name: nginx
restart: unless-stopped
mem_limit: 50m
mem_reservation: 30m
ports:
- 80:80
- 443:443
volumes:
- ./:/etc/nginx/conf.d
- ./includes:/etc/nginx/includes/
- ./certs:/etc/letsencrypt/live/sam-sla.net
- /site-frontend/build:/usr/share/site-frontend

be-postgres:
image: postgres:17
restart: unless-stopped
Expand All @@ -50,8 +35,10 @@ services:
image: quay.io/keycloak/keycloak:25.0
container_name: keycloak
restart: unless-stopped
ports:
- "8080:8080"
environment:
KC_LOG_LEVEL: debug
# KC_LOG_LEVEL: debug
KEYCLOAK_ADMIN_USER: admin
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: ${KC_PASS}
Expand All @@ -60,13 +47,12 @@ services:
KC_DB_SCHEMA: public
KC_DB_PASSWORD: ${DB_PASS}
KC_DB_USERNAME: admin
KC_PROXY_HEADERS: xforwarded
KC_HTTP_ENABLED: "true"
KC_HOSTNAME_STRICT: "false"
depends_on:
- kc-postgres
command:
- start
- start-dev

pgadmin:
image: dpage/pgadmin4:latest
Expand All @@ -79,8 +65,6 @@ services:
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- 5050:80
networks:
- default
depends_on:
- be-postgres
- kc-postgres
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ services:
container_name: keycloak
restart: unless-stopped
environment:
KC_LOG_LEVEL: debug
KEYCLOAK_ADMIN_USER: admin
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: ${KC_PASS}
Expand Down

0 comments on commit a260771

Please sign in to comment.