cosmostat active host inventory file api
This commit is contained in:
@ -1,66 +1,26 @@
|
||||
# for now there is no php code
|
||||
# to save resources, also disabling nginx
|
||||
# will map 3000 to 80 here unless this changes
|
||||
---
|
||||
|
||||
services:
|
||||
|
||||
redis:
|
||||
container_name: redis
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- {{ docker_gateway }}:6379:6379
|
||||
cosmostat-dash:
|
||||
container_name: cosmostat-dash
|
||||
image: cosmostat-dash:latest
|
||||
restart: always
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
networks:
|
||||
- cosmostat_net
|
||||
restart: always
|
||||
|
||||
ws_node:
|
||||
|
||||
image: node:18-alpine
|
||||
working_dir: /app
|
||||
command: sh -c "npm install && node server.js"
|
||||
container_name: ws_node
|
||||
ports:
|
||||
- "{{ docker_gateway }}:6379:6379"
|
||||
- "{{ (docker_gateway + ':') if not public_dashboard | bool else '' }}{{ custom_port }}:80"
|
||||
volumes:
|
||||
- {{ service_control_web_folder }}/html:/usr/src/app/public
|
||||
- {{ service_control_web_folder }}/node_server:/app
|
||||
- /app/node_modules
|
||||
ports:
|
||||
# put back to 3000 if the stack is needed
|
||||
- {{ (docker_gateway + ':') if secure_api else '' }}80:3000
|
||||
networks:
|
||||
- cosmostat_net
|
||||
restart: always
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
# these will be disabled until a stack is needed
|
||||
# web_dash:
|
||||
# container_name: web_dash
|
||||
# image: php:8.0-apache
|
||||
# ports:
|
||||
# - {{ (docker_gateway + ':') if secure_api else '' }}8080:80
|
||||
# volumes:
|
||||
# - ./html:/var/www/html/
|
||||
# networks:
|
||||
# - cosmostat_net
|
||||
# restart: always
|
||||
#
|
||||
# nginx_proxy:
|
||||
# container_name: nginx_proxy
|
||||
# image: nginx:latest
|
||||
# ports:
|
||||
# - "{{ (docker_gateway + ':') if secure_api else '' }}80:80"
|
||||
# volumes:
|
||||
# - ./proxy/nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
# networks:
|
||||
# - cosmostat_net
|
||||
# restart: always
|
||||
# depends_on:
|
||||
# - web_dash
|
||||
# - ws_nodenetworks:
|
||||
|
||||
# - "/opt/cosmostat/docker/web/html:/var/www/html"
|
||||
# - "/opt/cosmostat/docker/web/node_server:/app"
|
||||
- "/opt/cosmostat/api/cosmostat_settings.yaml:/app/cosmostat_settings.yaml:ro"
|
||||
|
||||
networks:
|
||||
cosmostat_net:
|
||||
external: true
|
||||
|
||||
|
||||
...
|
||||
Reference in New Issue
Block a user