Updated docker commands, docs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
RUST_LOG=warn,service=info
|
||||
|
||||
DATABASE_USER=siren
|
||||
DATABASE_PASSWORD=
|
||||
DATABASE_PASSWORD= #Required
|
||||
DATABASE_NAME=siren
|
||||
DATABASE_HOST=localhost
|
||||
DATABASE_PORT=5432
|
||||
@@ -10,7 +10,7 @@ KEYS_DIR_PATH=
|
||||
SESSION_TTL=1440
|
||||
|
||||
MINIO_ROOT_USER=siren
|
||||
MINIO_ROOT_PASSWORD=
|
||||
MINIO_ROOT_PASSWORD= #Required
|
||||
MINIO_HOST=localhost
|
||||
MINIO_PORT=9000
|
||||
MINIO_PORT_INTERNAL=9001
|
||||
@@ -22,6 +22,6 @@ SERVICE_HOST=localhost
|
||||
SERVICE_PORT=5000
|
||||
DATA_DIR_PATH=
|
||||
|
||||
DISCORD_TOKEN=
|
||||
DISCORD_TOKEN= #Required
|
||||
OPENAI_API_KEY=
|
||||
OPENAI_API_MODEL=gpt-3.5-turbo
|
||||
@@ -13,10 +13,11 @@ help: ## Help command
|
||||
build: ## Build the docker image
|
||||
docker compose build
|
||||
|
||||
utils: ## Start the utils
|
||||
docker compose up -d db
|
||||
docker compose up -d redis
|
||||
docker compose up -d minio
|
||||
backend-up: ## Start the backend containers
|
||||
docker compose --profile backend up -d
|
||||
|
||||
backend-down: ## Stop the backend containers
|
||||
docker compose --profile backend down
|
||||
|
||||
up: ## Start the app
|
||||
docker compose up -d
|
||||
@@ -24,7 +25,7 @@ up: ## Start the app
|
||||
down: ## Stop the app
|
||||
docker compose down
|
||||
|
||||
clean:
|
||||
clean: ## Clean the app
|
||||
docker compose down && \
|
||||
docker image rm siren-service || \
|
||||
docker network rm siren_frontend || \
|
||||
|
||||
@@ -37,6 +37,9 @@ services:
|
||||
- frontend
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
profiles:
|
||||
- siren
|
||||
|
||||
db:
|
||||
image: postgres:latest
|
||||
container_name: siren-db
|
||||
@@ -53,6 +56,9 @@ services:
|
||||
networks:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
profiles:
|
||||
- backend
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
container_name: siren-redis
|
||||
@@ -63,6 +69,9 @@ services:
|
||||
networks:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
profiles:
|
||||
- backend
|
||||
|
||||
minio:
|
||||
image: minio/minio
|
||||
container_name: siren-minio
|
||||
@@ -78,6 +87,8 @@ services:
|
||||
- backend
|
||||
command: server --console-address ":9001" /data
|
||||
restart: unless-stopped
|
||||
profiles:
|
||||
- backend
|
||||
|
||||
volumes:
|
||||
db:
|
||||
|
||||
Reference in New Issue
Block a user