56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
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_BASICAUTH_USERNAME=wisecolt
|
|
- ME_CONFIG_BASICAUTH_PASSWORD=4noQ93GMQ6hJPgFdovjW
|
|
ports:
|
|
- "8081:8081"
|
|
depends_on:
|
|
- mongo
|
|
networks:
|
|
- smarthome
|
|
|
|
networks:
|
|
smarthome:
|