chore: add Docker deployment for Athena and Hermes
This commit is contained in:
parent
4cf671e32d
commit
70fd9a7f28
4 changed files with 41 additions and 27 deletions
|
|
@ -1,40 +1,21 @@
|
|||
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:
|
||||
build: .
|
||||
|
||||
container_name: hermes-api
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
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_VERSION: 0.1.0
|
||||
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
networks:
|
||||
- default
|
||||
- olympus-network
|
||||
|
||||
networks:
|
||||
olympus-network:
|
||||
external: true
|
||||
|
|
|
|||
7
frontend/athena/.dockerignore
Normal file
7
frontend/athena/.dockerignore
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
node_modules
|
||||
.next
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
Dockerfile
|
||||
docker-compose.yml
|
||||
14
frontend/athena/Dockerfile
Normal file
14
frontend/athena/Dockerfile
Normal 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"]
|
||||
12
frontend/athena/docker-compose.yml
Normal file
12
frontend/athena/docker-compose.yml
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue