mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
local env fixes
This commit is contained in:
+18
-2
@@ -1,11 +1,19 @@
|
|||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres:16.1-alpine3.19
|
image: postgres:16.13-alpine3.23
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: "kemkas"
|
POSTGRES_USER: "kemkas"
|
||||||
POSTGRES_PASSWORD: "kemkas-dev42"
|
POSTGRES_PASSWORD: "kemkas-dev42"
|
||||||
|
volumes:
|
||||||
|
- db-data:/var/lib/postgresql/data
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "pg_isready -U kemkas -d postgres"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 3s
|
||||||
|
retries: 20
|
||||||
|
start_period: 5s
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: ghcr.io/morbalint/kemkas-backend:b8565f8e
|
image: ghcr.io/morbalint/kemkas-backend:b8565f8e
|
||||||
@@ -15,6 +23,9 @@ services:
|
|||||||
ConnectionStrings__DefaultConnection: "Server=db;User Id=kemkas;Password=kemkas-dev42"
|
ConnectionStrings__DefaultConnection: "Server=db;User Id=kemkas;Password=kemkas-dev42"
|
||||||
Email__DomainName: "mail.kemkas.hu"
|
Email__DomainName: "mail.kemkas.hu"
|
||||||
Email__ApiKey: ""
|
Email__ApiKey: ""
|
||||||
|
depends_on:
|
||||||
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
@@ -23,4 +34,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
- $HOME/.aspnet/https/kemkas.pem:/etc/nginx/kemkas.pem
|
- $HOME/.aspnet/https/kemkas.pem:/etc/nginx/kemkas.pem
|
||||||
- $HOME/.aspnet/https/kemkas.key:/etc/nginx/kemkas.key
|
- $HOME/.aspnet/https/kemkas.key:/etc/nginx/kemkas.key
|
||||||
|
depends_on:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db-data:
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
PORT=44478
|
PORT=44478
|
||||||
HTTPS=true
|
HTTPS=false
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ export default defineConfig(({ mode }) => {
|
|||||||
port,
|
port,
|
||||||
https,
|
https,
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
|
allowedHosts: ['localhost', 'host.docker.internal', 'frontend'],
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
globals: true,
|
globals: true,
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ http {
|
|||||||
#access_log /var/log/nginx/host.access.log main;
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass https://frontend;
|
proxy_pass http://frontend;
|
||||||
}
|
}
|
||||||
|
|
||||||
# redirect server error pages to the static page /50x.html
|
# redirect server error pages to the static page /50x.html
|
||||||
|
|||||||
Reference in New Issue
Block a user