first commit

This commit is contained in:
2024-03-03 23:12:38 +03:00
commit a5b7d0edfe
11 changed files with 355 additions and 0 deletions

55
docker-compose.yml Normal file
View File

@@ -0,0 +1,55 @@
version: "3"
services:
web:
build: .
volumes:
- ./:/smarthome
- /smarthome/node_modules
ports:
- "9095:9095"
restart: always
links:
- redis
- mongo
tty: true
environment:
DEBUG_COLORS: "true"
TERM: xterm-256color
COLORTERM: truecolor
networks:
- smarthome
mongo:
container_name: mongo
image: mongo:4.2.5
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=anTis**664+..12895
ports: ["27017:27017"]
networks:
- smarthome
redis:
container_name: redis
image: redis:5.0.8
restart: always
command: ["redis-server", "--bind", "redis", "--port", "6379"]
ports: ["6379:6379"]
mongo-express:
container_name: mongo-express
image: mongo-express
restart: always
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=admin
- ME_CONFIG_MONGODB_ADMINPASSWORD=anTis**664+..12895
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_AUTH_USERNAME=wisecolt
- ME_CONFIG_MONGODB_AUTH_PASSWORD=XQrvBF7y&Jnc&JoAPCVG6%!kM3UY*d*VweW
ports:
- "8081:8081"
depends_on:
- mongo
networks:
- smarthome
networks:
smarthome: