Skip to content

Commit

Permalink
created compose
Browse files Browse the repository at this point in the history
  • Loading branch information
dedAshot committed Nov 30, 2024
1 parent 0c1d0f8 commit d6b55ef
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

volumes
60 changes: 60 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
services:

redis:
image: redis:8.0-M02-alpine
ports:
- 6379:6379
volumes:
- ./configs/redis:/usr/local/etc/redis
command: redis-server /usr/local/etc/redis/redis.conf

mongo:
image: mvertes/alpine-mongo:4.0.6-1
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 12345678
ports:
- 27017:27017
volumes:
- ./volumes/mongo:/data/db

frontend:
build: ./services/frontend
ports:
- 8000:8080
environment:
- SERVER_PORT=8080
- BACKEND_ADDRESS=127.0.0.1:8080

backend:
build: ./services/backend
ports:
- 8010:8080
environment:
- SERVER_PORT=8080
- ML_ADDRESS=ml:8080
- REDIS_CREDENTIALS=redis:6379

ml:
build: ./services/ml
ports:
- 8011:8080
environment:
- SERVER_PORT=8080
# - MONGO_ADDRESS=mongo:27017
# - MONGO_USER=root
# - MONGO_PASSWORD=12345678
volumes:
- ./volumes/models:/app/models

ml-edu:
build: ./services/ml-edu
ports:
- 8012:8080
environment:
- MONGO_ADDRESS=mongo:27017
- MONGO_USER=root
- MONGO_PASSWORD=12345678
volumes:
- ./volumes/models:/app/models
3 changes: 3 additions & 0 deletions configs/redis/redis.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
maxmemory 100mb
maxmemory-policy allkeys-lru
#volatile-lru

0 comments on commit d6b55ef

Please sign in to comment.