123
This commit is contained in:
@ -50,6 +50,59 @@ services:
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
api:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.api
|
||||
container_name: coursecraft-api
|
||||
restart: unless-stopped
|
||||
env_file: ../.env
|
||||
environment:
|
||||
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/coursecraft?schema=public
|
||||
REDIS_URL: redis://redis:6379
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: "6379"
|
||||
MEILISEARCH_HOST: http://meilisearch:7700
|
||||
PORT: "3125"
|
||||
NODE_ENV: production
|
||||
ports:
|
||||
- "3125:3125"
|
||||
depends_on:
|
||||
postgres: { condition: service_healthy }
|
||||
redis: { condition: service_healthy }
|
||||
meilisearch: { condition: service_healthy }
|
||||
|
||||
ai-service:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.ai
|
||||
container_name: coursecraft-ai-service
|
||||
restart: unless-stopped
|
||||
env_file: ../.env
|
||||
environment:
|
||||
REDIS_URL: redis://redis:6379
|
||||
REDIS_HOST: redis
|
||||
REDIS_PORT: "6379"
|
||||
NODE_ENV: production
|
||||
depends_on:
|
||||
redis: { condition: service_healthy }
|
||||
|
||||
web:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.web
|
||||
container_name: coursecraft-web
|
||||
restart: unless-stopped
|
||||
env_file: ../.env
|
||||
environment:
|
||||
API_URL: http://api:3125
|
||||
PORT: "3080"
|
||||
NODE_ENV: production
|
||||
ports:
|
||||
- "3080:3080"
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: coursecraft-network
|
||||
|
||||
Reference in New Issue
Block a user