-
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.
- Loading branch information
Showing
4 changed files
with
92 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
server { | ||
listen 80; | ||
|
||
server_name pmo.tracehub.git; | ||
|
||
location /realms/ { | ||
proxy_pass http://localhost:8090; | ||
} | ||
location / { | ||
proxy_pass http://localhost:8080; | ||
} | ||
} |
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,19 @@ | ||
sudo apt-get update && sudo apt-get -y upgrade | ||
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | ||
sudo apt-get -y install docker-ce | ||
sudo systemctl status docker | ||
sudo apt-get -y install curl gnupg2 ca-certificates lsb-release ubuntu-keyring | ||
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \ | ||
| sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null | ||
gpg --dry-run --quiet --no-keyring --import --import-options import-show /usr/share/keyrings/nginx-archive-keyring.gpg | ||
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \ | ||
http://nginx.org/packages/mainline/ubuntu `lsb_release -cs` nginx" \ | ||
| sudo tee /etc/apt/sources.list.d/nginx.list | ||
echo -e "Package: *\nPin: origin nginx.org\nPin: release o=nginx\nPin-Priority: 900\n" \ | ||
| sudo tee /etc/apt/preferences.d/99nginx | ||
sudo apt-get -y install nginx | ||
sudo mv default.conf /etc/nginx/conf.d/default.conf | ||
sudo systemctl restart nginx | ||
sudo systemctl status nginx |
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,37 @@ | ||
version: '3.9' | ||
|
||
services: | ||
keycloak: | ||
image: quay.io/keycloak/keycloak:23.0.2 | ||
container_name: keycloak | ||
environment: | ||
KC_DB: ${KC_DB} | ||
KC_DB_URL_HOST: ${KC_DB_URL_HOST} | ||
KC_DB_USERNAME: ${KC_DB_USERNAME} | ||
KC_DB_PASSWORD: ${KC_DB_PASSWORD} | ||
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN} | ||
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD} | ||
ports: | ||
- '8090:8090' | ||
networks: | ||
- pmo | ||
command: start --import-realm --http-port=8090 | ||
volumes: | ||
- ./realm-export.json:/opt/keycloak/data/import/realm-export.json | ||
env_file: | ||
- keycloak.env | ||
app: | ||
container_name: tracehub-pmo | ||
image: ghcr.io/tracehubpm/pmo:${TAG} | ||
ports: | ||
- '8080:8080' | ||
depends_on: | ||
- keycloak | ||
networks: | ||
- pmo | ||
env_file: | ||
- pmo.env | ||
|
||
networks: | ||
pmo: | ||
driver: bridge |