Aktueller Stand
This commit is contained in:
@@ -9,13 +9,9 @@ services:
|
||||
POSTGRES_DB: mailcleaner
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
redis:
|
||||
image: redis:7
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
api:
|
||||
build:
|
||||
@@ -24,7 +20,7 @@ services:
|
||||
env_file:
|
||||
- ./.env
|
||||
environment:
|
||||
NODE_ENV: development
|
||||
NODE_ENV: ${NODE_ENV:-development}
|
||||
PORT: ${API_PORT:-8000}
|
||||
DATABASE_URL: ${DATABASE_URL:-postgresql://mailcleaner:mailcleaner@postgres:5432/mailcleaner}
|
||||
REDIS_URL: ${REDIS_URL:-redis://redis:6379}
|
||||
@@ -42,11 +38,15 @@ services:
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
command: ["sh", "-c", "npm run prisma:generate && npm run dev"]
|
||||
command: ["sh", "-c", "if [ \"${AUTO_MIGRATE:-false}\" = \"true\" ]; then npx prisma migrate deploy; fi; npm run prisma:generate && npm run dev"]
|
||||
ports:
|
||||
- "${API_PORT:-8000}:${API_PORT:-8000}"
|
||||
- "${BIND_IP:-127.0.0.1}:${API_PORT:-8000}:${API_PORT:-8000}"
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- api_node_modules:/app/node_modules
|
||||
networks:
|
||||
- default
|
||||
- npm
|
||||
|
||||
worker:
|
||||
build:
|
||||
@@ -55,7 +55,7 @@ services:
|
||||
env_file:
|
||||
- ./.env
|
||||
environment:
|
||||
NODE_ENV: development
|
||||
NODE_ENV: ${NODE_ENV:-development}
|
||||
DATABASE_URL: ${DATABASE_URL:-postgresql://mailcleaner:mailcleaner@postgres:5432/mailcleaner}
|
||||
REDIS_URL: ${REDIS_URL:-redis://redis:6379}
|
||||
JWT_SECRET: ${JWT_SECRET:-dev-change-me}
|
||||
@@ -75,6 +75,7 @@ services:
|
||||
command: ["sh", "-c", "npm run prisma:generate && npm run worker:dev"]
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
- worker_node_modules:/app/node_modules
|
||||
|
||||
web:
|
||||
build:
|
||||
@@ -89,9 +90,19 @@ services:
|
||||
depends_on:
|
||||
- api
|
||||
ports:
|
||||
- "${WEB_PORT:-3000}:3000"
|
||||
- "${BIND_IP:-127.0.0.1}:${WEB_PORT:-3000}:3000"
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
networks:
|
||||
- default
|
||||
- npm
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
api_node_modules:
|
||||
worker_node_modules:
|
||||
|
||||
networks:
|
||||
npm:
|
||||
external: true
|
||||
name: nginx-proxy-manager_default
|
||||
|
||||
Reference in New Issue
Block a user