@@ -57,21 +57,22 @@ services:
5757
5858 # Web Frontend - Orin Build
5959 web :
60- image : ghcr.io/buildorin/orin-web:latest
60+ build :
61+ context : .
62+ dockerfile : docker/web/Dockerfile
63+ args :
64+ VITE_KEYCLOAK_URL : https://auth.app.useorin.com
65+ VITE_KEYCLOAK_REALM : orin
66+ VITE_KEYCLOAK_CLIENT_ID : orin
67+ VITE_KEYCLOAK_REDIRECT_URI : https://app.useorin.com
68+ VITE_KEYCLOAK_POST_LOGOUT_REDIRECT_URI : https://app.useorin.com
69+ VITE_API_URL : https://api.app.useorin.com
6170 platform : linux/amd64
6271 ports :
63- - " 5173:8000 "
72+ - " 80:80 "
6473 env_file :
65- - .env
74+ - apps/web/ .env
6675 restart : always
67- environment :
68- - VITE_API_URL=https://api.app.useorin.com
69- - VITE_DOCS_URL=https://docs.useorin.com
70- - VITE_KEYCLOAK_CLIENT_ID=orin
71- - VITE_KEYCLOAK_POST_LOGOUT_REDIRECT_URI=https://app.useorin.com
72- - VITE_KEYCLOAK_REALM=orin
73- - VITE_KEYCLOAK_REDIRECT_URI=https://app.useorin.com
74- - VITE_KEYCLOAK_URL=https://auth.app.useorin.com
7576
7677 # Segmentation Service - Orin Build
7778 segmentation-backend :
@@ -175,6 +176,8 @@ services:
175176 # Authentication
176177 keycloak :
177178 image : quay.io/keycloak/keycloak:25.0.2
179+ ports :
180+ - " 8080:8080"
178181 environment :
179182 - KEYCLOAK_ADMIN=admin
180183 - KEYCLOAK_ADMIN_PASSWORD=admin
@@ -183,6 +186,9 @@ services:
183186 - KC_HOSTNAME_STRICT=false
184187 - KC_HOSTNAME_STRICT_HTTPS=false
185188 - KC_HTTP_ENABLED=true
189+ - KC_HTTPS_ENABLED=false
190+ - KC_HOSTNAME=auth.app.useorin.com
191+ - KC_HOSTNAME_PORT=443
186192 - KC_DB_URL=jdbc:postgresql://postgres:5432/keycloak
187193 - KC_DB_USERNAME=postgres
188194 - KC_DB_PASSWORD=postgres
@@ -195,12 +201,13 @@ services:
195201 test : [ "CMD", "curl", "-f", "http://localhost:8080/health" ]
196202 interval : 30s
197203 timeout : 10s
198- retries : 10
199- start_period : 600s
204+ retries : 3
205+ start_period : 40s
200206 depends_on :
201207 postgres :
202208 condition : service_healthy
203- restart : always
209+ networks :
210+ - default
204211
205212volumes :
206213 postgres_data :
0 commit comments