chore: add Docker deployment for Athena and Hermes

This commit is contained in:
admin.schubert 2026-07-02 12:16:32 +00:00
parent 4cf671e32d
commit 70fd9a7f28
4 changed files with 41 additions and 27 deletions

View file

@ -1,40 +1,21 @@
services: services:
postgres:
image: postgres:17
container_name: hermes-postgres
restart: unless-stopped
environment:
POSTGRES_DB: olympus
POSTGRES_USER: olympus
POSTGRES_PASSWORD: olympus123
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
hermes: hermes:
build: . build: .
container_name: hermes-api container_name: hermes-api
restart: unless-stopped restart: unless-stopped
depends_on:
- postgres
environment: environment:
DATABASE_URL: postgresql+psycopg://olympus:olympus123@postgres:5432/olympus DATABASE_URL: postgresql+psycopg://olympus:FsFs03285310!!!@olympus-db:5432/olympus
APP_NAME: Hermes API APP_NAME: Hermes API
APP_VERSION: 0.1.0 APP_VERSION: 0.1.0
ports: ports:
- "8000:8000" - "8000:8000"
volumes: networks:
postgres_data: - default
- olympus-network
networks:
olympus-network:
external: true

View file

@ -0,0 +1,7 @@
node_modules
.next
.git
.gitignore
README.md
Dockerfile
docker-compose.yml

View file

@ -0,0 +1,14 @@
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "start"]

View file

@ -0,0 +1,12 @@
services:
athena:
build: .
container_name: athena-web
restart: unless-stopped
environment:
NODE_ENV: production
NEXT_PUBLIC_API_URL: https://api.funktechnik-schubert.de
ports:
- "3001:3000"