Add deployment and improve Dockerfiles and CICD

This commit is contained in:
jkreller
2024-02-06 20:16:27 +00:00
committed by ekresse
parent b22c6c010b
commit 130dfb9698
12 changed files with 188 additions and 125 deletions

View File

@ -5,29 +5,33 @@ services:
build:
dockerfile: Dockerfile
context: ./backend
target: prod
command: "--http=0.0.0.0:8090 --dir=/htwkalender/data/pb_data"
# open port 8090
ports:
- "8090:8090"
command: "/htwkalender serve --http=0.0.0.0:8090 --dir=/pb_data"
- "8090:8090"
volumes:
- ./backend/pb_data:/pb_data
- pb_data:/htwkalender/data
htwkalender-frontend:
volumes:
- ./frontend/src:/app/src
build:
dockerfile: Dockerfile
context: ./frontend
target: dev
command: "npm run dev"
# open port 8000
ports:
- "8000:8000"
command: "npm run dev"
- "8000:8000"
rproxy:
image: nginx:stable
image: bitnami/nginx:1.25
volumes:
- ./reverseproxy.conf:/etc/nginx/nginx.conf
- ./reverseproxy.conf:/opt/bitnami/nginx/conf/nginx.conf
depends_on:
- htwkalender-backend
- htwkalender-frontend
ports:
- "80:80"
volumes:
pb_data: