chore: docker-compose + traefik deployment for aqua.dev.kkhost.pl (#8)

This commit is contained in:
2026-10-07 09:22:39 +00:00
parent 770cc7115c
commit 3bfef18767
3 changed files with 31 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
node_modules
dist
.git
+12
View File
@@ -0,0 +1,12 @@
# Stage 1: Build
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Serve
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
# Use default nginx config (serves /usr/share/nginx/html on port 80)
+16
View File
@@ -0,0 +1,16 @@
services:
aquarium:
build: .
container_name: aquarium
restart: unless-stopped
networks:
- dev_net
labels:
- "traefik.enable=true"
- "traefik.http.routers.aquarium.rule=Host(`aqua.dev.kkhost.pl`)"
- "traefik.http.routers.aquarium.entrypoints=web"
- "traefik.http.services.aquarium.loadbalancer.server.port=80"
networks:
dev_net:
external: true