Docker deployment Realised
This commit is contained in:
BIN
docker/.DS_Store
vendored
Normal file
BIN
docker/.DS_Store
vendored
Normal file
Binary file not shown.
1
docker/.env
Normal file
1
docker/.env
Normal file
@@ -0,0 +1 @@
|
||||
COMPOSE_PROJECT_NAME=eveai_development
|
||||
171
docker/compose.yaml
Normal file
171
docker/compose.yaml
Normal file
@@ -0,0 +1,171 @@
|
||||
# Comments are provided throughout this file to help you get started.
|
||||
# If you need more help, visit the Docker Compose reference guide at
|
||||
# https://docs.docker.com/go/compose-spec-reference/
|
||||
|
||||
# Here the instructions define your application as a service called "server".
|
||||
# This service is built from the Dockerfile in the current directory.
|
||||
# You can add other services your application may depend on here, such as a
|
||||
# database or a cache. For examples, see the Awesome Compose repository:
|
||||
# https://github.com/docker/awesome-compose
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
ports:
|
||||
- 80:80
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- ../nginx:/etc/nginx
|
||||
- ../nginx/sites-enabled:/etc/nginx/sites-enabled
|
||||
- ../nginx/static:/etc/nginx/static
|
||||
- ../nginx/public:/etc/nginx/public
|
||||
- ./logs/nginx:/var/log/nginx
|
||||
depends_on:
|
||||
- eveai_app
|
||||
- eveai_chat
|
||||
|
||||
eveai_app:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: ./docker/eveai_app/Dockerfile
|
||||
ports:
|
||||
- 5001:5001
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- FLASK_DEBUG=1
|
||||
volumes:
|
||||
- ../eveai_app:/app/eveai_app
|
||||
- ../common:/app/common
|
||||
- ../config:/app/config
|
||||
- ../migrations:/app/migrations
|
||||
- ../scripts:/app/scripts
|
||||
- ./logs:/app/logs
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:5001/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
command: ["sh", "-c", "scripts/start_eveai_app.sh"]
|
||||
|
||||
eveai_workers:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: ./docker/eveai_workers/Dockerfile
|
||||
# ports:
|
||||
# - 5001:5001
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- FLASK_DEBUG=1
|
||||
volumes:
|
||||
- ../eveai_workers:/app/eveai_workers
|
||||
- ../common:/app/common
|
||||
- ../config:/app/config
|
||||
- ../scripts:/app/scripts
|
||||
- ./logs:/app/logs
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
# healthcheck:
|
||||
# test: [ "CMD", "curl", "-f", "http://localhost:5001/health" ]
|
||||
# interval: 10s
|
||||
# timeout: 5s
|
||||
# retries: 5
|
||||
command: [ "sh", "-c", "scripts/start_eveai_workers.sh" ]
|
||||
|
||||
eveai_chat:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: ./docker/eveai_chat/Dockerfile
|
||||
ports:
|
||||
- 5002:5002
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- FLASK_DEBUG=1
|
||||
volumes:
|
||||
- ../eveai_chat:/app/eveai_chat
|
||||
- ../common:/app/common
|
||||
- ../config:/app/config
|
||||
- ../scripts:/app/scripts
|
||||
- ./logs:/app/logs
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost:5002/health" ] # Adjust based on your health endpoint
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
eveai_chat_workers:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: ./docker/eveai_chat_workers/Dockerfile
|
||||
# ports:
|
||||
# - 5001:5001
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- FLASK_DEBUG=1
|
||||
volumes:
|
||||
- ../eveai_chat_workers:/app/eveai_chat_workers
|
||||
- ../common:/app/common
|
||||
- ../config:/app/config
|
||||
- ../scripts:/app/scripts
|
||||
- ./logs:/app/logs
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
# healthcheck:
|
||||
# test: [ "CMD", "curl", "-f", "http://localhost:5001/health" ]
|
||||
# interval: 10s
|
||||
# timeout: 5s
|
||||
# retries: 5
|
||||
command: [ "sh", "-c", "scripts/start_eveai_chat_workers.sh" ]
|
||||
|
||||
db:
|
||||
hostname: db
|
||||
image: ankane/pgvector
|
||||
ports:
|
||||
- 5432:5432
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_DB=eveai
|
||||
- POSTGRES_USER=luke
|
||||
- POSTGRES_PASSWORD=Skywalker!
|
||||
volumes:
|
||||
- ./db/postgresql:/var/lib/postgresql/data
|
||||
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
healthcheck:
|
||||
test: [ "CMD-SHELL", "pg_isready -d eveai -U luke" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
redis:
|
||||
image: redis:7.2.5
|
||||
restart: always
|
||||
expose:
|
||||
- 6379
|
||||
volumes:
|
||||
- ./db/redis:/data
|
||||
healthcheck:
|
||||
test: [ "CMD", "redis-cli", "ping" ]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
volumes:
|
||||
db-data:
|
||||
redis-data:
|
||||
#secrets:
|
||||
# db-password:
|
||||
# file: ./db/password.txt
|
||||
|
||||
BIN
docker/db/.DS_Store
vendored
Normal file
BIN
docker/db/.DS_Store
vendored
Normal file
Binary file not shown.
4
docker/db/init.sql
Normal file
4
docker/db/init.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
-- Initialize the eveai database and enable the pgvector extension
|
||||
CREATE EXTENSION IF NOT EXISTS vector;
|
||||
|
||||
-- You can add other initialization SQL commands here if needed
|
||||
1
docker/db/password.txt
Normal file
1
docker/db/password.txt
Normal file
@@ -0,0 +1 @@
|
||||
Skywalker!
|
||||
BIN
docker/db/postgresql/.DS_Store
vendored
Normal file
BIN
docker/db/postgresql/.DS_Store
vendored
Normal file
Binary file not shown.
1
docker/db/postgresql/PG_VERSION
Normal file
1
docker/db/postgresql/PG_VERSION
Normal file
@@ -0,0 +1 @@
|
||||
15
|
||||
BIN
docker/db/postgresql/base/.DS_Store
vendored
Normal file
BIN
docker/db/postgresql/base/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/112
Normal file
BIN
docker/db/postgresql/base/1/112
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/113
Normal file
BIN
docker/db/postgresql/base/1/113
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1247
Normal file
BIN
docker/db/postgresql/base/1/1247
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1247_fsm
Normal file
BIN
docker/db/postgresql/base/1/1247_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1247_vm
Normal file
BIN
docker/db/postgresql/base/1/1247_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1249
Normal file
BIN
docker/db/postgresql/base/1/1249
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1249_fsm
Normal file
BIN
docker/db/postgresql/base/1/1249_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1249_vm
Normal file
BIN
docker/db/postgresql/base/1/1249_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1255
Normal file
BIN
docker/db/postgresql/base/1/1255
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1255_fsm
Normal file
BIN
docker/db/postgresql/base/1/1255_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1255_vm
Normal file
BIN
docker/db/postgresql/base/1/1255_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1259
Normal file
BIN
docker/db/postgresql/base/1/1259
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1259_fsm
Normal file
BIN
docker/db/postgresql/base/1/1259_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/1259_vm
Normal file
BIN
docker/db/postgresql/base/1/1259_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13393
Normal file
BIN
docker/db/postgresql/base/1/13393
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13393_fsm
Normal file
BIN
docker/db/postgresql/base/1/13393_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13393_vm
Normal file
BIN
docker/db/postgresql/base/1/13393_vm
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/13396
Normal file
0
docker/db/postgresql/base/1/13396
Normal file
BIN
docker/db/postgresql/base/1/13397
Normal file
BIN
docker/db/postgresql/base/1/13397
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13398
Normal file
BIN
docker/db/postgresql/base/1/13398
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13398_fsm
Normal file
BIN
docker/db/postgresql/base/1/13398_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13398_vm
Normal file
BIN
docker/db/postgresql/base/1/13398_vm
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/13401
Normal file
0
docker/db/postgresql/base/1/13401
Normal file
BIN
docker/db/postgresql/base/1/13402
Normal file
BIN
docker/db/postgresql/base/1/13402
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13403
Normal file
BIN
docker/db/postgresql/base/1/13403
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13403_fsm
Normal file
BIN
docker/db/postgresql/base/1/13403_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13403_vm
Normal file
BIN
docker/db/postgresql/base/1/13403_vm
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/13406
Normal file
0
docker/db/postgresql/base/1/13406
Normal file
BIN
docker/db/postgresql/base/1/13407
Normal file
BIN
docker/db/postgresql/base/1/13407
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13408
Normal file
BIN
docker/db/postgresql/base/1/13408
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13408_fsm
Normal file
BIN
docker/db/postgresql/base/1/13408_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/13408_vm
Normal file
BIN
docker/db/postgresql/base/1/13408_vm
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/13411
Normal file
0
docker/db/postgresql/base/1/13411
Normal file
BIN
docker/db/postgresql/base/1/13412
Normal file
BIN
docker/db/postgresql/base/1/13412
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/1417
Normal file
0
docker/db/postgresql/base/1/1417
Normal file
0
docker/db/postgresql/base/1/1418
Normal file
0
docker/db/postgresql/base/1/1418
Normal file
BIN
docker/db/postgresql/base/1/174
Normal file
BIN
docker/db/postgresql/base/1/174
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/175
Normal file
BIN
docker/db/postgresql/base/1/175
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2187
Normal file
BIN
docker/db/postgresql/base/1/2187
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/2224
Normal file
0
docker/db/postgresql/base/1/2224
Normal file
BIN
docker/db/postgresql/base/1/2228
Normal file
BIN
docker/db/postgresql/base/1/2228
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/2328
Normal file
0
docker/db/postgresql/base/1/2328
Normal file
0
docker/db/postgresql/base/1/2336
Normal file
0
docker/db/postgresql/base/1/2336
Normal file
BIN
docker/db/postgresql/base/1/2337
Normal file
BIN
docker/db/postgresql/base/1/2337
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2579
Normal file
BIN
docker/db/postgresql/base/1/2579
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2600
Normal file
BIN
docker/db/postgresql/base/1/2600
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2600_fsm
Normal file
BIN
docker/db/postgresql/base/1/2600_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2600_vm
Normal file
BIN
docker/db/postgresql/base/1/2600_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2601
Normal file
BIN
docker/db/postgresql/base/1/2601
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2601_fsm
Normal file
BIN
docker/db/postgresql/base/1/2601_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2601_vm
Normal file
BIN
docker/db/postgresql/base/1/2601_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2602
Normal file
BIN
docker/db/postgresql/base/1/2602
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2602_fsm
Normal file
BIN
docker/db/postgresql/base/1/2602_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2602_vm
Normal file
BIN
docker/db/postgresql/base/1/2602_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2603
Normal file
BIN
docker/db/postgresql/base/1/2603
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2603_fsm
Normal file
BIN
docker/db/postgresql/base/1/2603_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2603_vm
Normal file
BIN
docker/db/postgresql/base/1/2603_vm
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/2604
Normal file
0
docker/db/postgresql/base/1/2604
Normal file
BIN
docker/db/postgresql/base/1/2605
Normal file
BIN
docker/db/postgresql/base/1/2605
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2605_fsm
Normal file
BIN
docker/db/postgresql/base/1/2605_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2605_vm
Normal file
BIN
docker/db/postgresql/base/1/2605_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2606
Normal file
BIN
docker/db/postgresql/base/1/2606
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2606_fsm
Normal file
BIN
docker/db/postgresql/base/1/2606_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2606_vm
Normal file
BIN
docker/db/postgresql/base/1/2606_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2607
Normal file
BIN
docker/db/postgresql/base/1/2607
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2607_fsm
Normal file
BIN
docker/db/postgresql/base/1/2607_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2607_vm
Normal file
BIN
docker/db/postgresql/base/1/2607_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2608
Normal file
BIN
docker/db/postgresql/base/1/2608
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2608_fsm
Normal file
BIN
docker/db/postgresql/base/1/2608_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2608_vm
Normal file
BIN
docker/db/postgresql/base/1/2608_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2609
Normal file
BIN
docker/db/postgresql/base/1/2609
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2609_fsm
Normal file
BIN
docker/db/postgresql/base/1/2609_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2609_vm
Normal file
BIN
docker/db/postgresql/base/1/2609_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2610
Normal file
BIN
docker/db/postgresql/base/1/2610
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2610_fsm
Normal file
BIN
docker/db/postgresql/base/1/2610_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2610_vm
Normal file
BIN
docker/db/postgresql/base/1/2610_vm
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/2611
Normal file
0
docker/db/postgresql/base/1/2611
Normal file
BIN
docker/db/postgresql/base/1/2612
Normal file
BIN
docker/db/postgresql/base/1/2612
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2612_fsm
Normal file
BIN
docker/db/postgresql/base/1/2612_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2612_vm
Normal file
BIN
docker/db/postgresql/base/1/2612_vm
Normal file
Binary file not shown.
0
docker/db/postgresql/base/1/2613
Normal file
0
docker/db/postgresql/base/1/2613
Normal file
BIN
docker/db/postgresql/base/1/2615
Normal file
BIN
docker/db/postgresql/base/1/2615
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2615_fsm
Normal file
BIN
docker/db/postgresql/base/1/2615_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2615_vm
Normal file
BIN
docker/db/postgresql/base/1/2615_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2616
Normal file
BIN
docker/db/postgresql/base/1/2616
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2616_fsm
Normal file
BIN
docker/db/postgresql/base/1/2616_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2616_vm
Normal file
BIN
docker/db/postgresql/base/1/2616_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2617
Normal file
BIN
docker/db/postgresql/base/1/2617
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2617_fsm
Normal file
BIN
docker/db/postgresql/base/1/2617_fsm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2617_vm
Normal file
BIN
docker/db/postgresql/base/1/2617_vm
Normal file
Binary file not shown.
BIN
docker/db/postgresql/base/1/2618
Normal file
BIN
docker/db/postgresql/base/1/2618
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user