docker config

This commit is contained in:
h z
2026-02-14 15:16:45 +00:00
parent 7289001503
commit 2d74648d3a
5 changed files with 59 additions and 14 deletions

View File

@@ -4,19 +4,18 @@ services:
context: ./Dialectic.Frontend
dockerfile: Dockerfile
ports:
- "${FRONTEND_PORT:-3000}:3000"
- "${DIALECTIC_FRONTEND_PORT:-3000}:3000"
environment:
- NODE_ENV=development
- REACT_APP_BACKEND_HOST=${BACKEND_URL:-http://localhost:8000}
stdin_open: true
tty: true
- DIALECTIC_REACT_APP_BACKEND_HOST=${DIALECTIC_BACKEND_URL:-http://localhost:8000}
networks:
- app-network
backend:
build:
context: ./Dialectic.Backend
dockerfile: Dockerfile
ports:
- "${BACKEND_PORT:-8000}:8000"
- "${DIALECTIC_BACKEND_PORT:-8000}:8000"
volumes:
- dialectic_config:/app/config
environment:
@@ -26,7 +25,8 @@ services:
depends_on:
db:
condition: service_healthy
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
networks:
- app-network
db:
image: mysql:8.0
@@ -45,7 +45,12 @@ services:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
networks:
- app-network
volumes:
mysql_data:
dialectic_config:
dialectic_config:
networks:
app-network:
driver: bridge