You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
4.7 KiB

2 years ago
version: "3.8"
services:
swarmlabclient:
2 years ago
image: hub.swarmlab.io:5480/playground-hybrid-agent:latest
2 years ago
user: root
2 years ago
privileged: true
container_name: swarmlab-hybrid-agent
#entrypoint: ["mpi_bootstrap", "role=master", "mpi_master_service_name=master", "mpi_worker_service_name=worker"]
2 years ago
environment:
- NODENAME={{.Node.Hostname}}
- NODEID={{.Node.ID}}
deploy:
replicas: 1
placement:
max_replicas_per_node: 1
#constraints:
#- node.id==${noderead}
#- node.labels.region==okeanos
resources:
limits:
cpus: '0.50'
memory: 250M
reservations:
2 years ago
cpus: '0.50'
memory: 250M
2 years ago
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 5
window: 120s
update_config:
parallelism: 2
delay: 10s
order: stop-first
ports:
2 years ago
- "3088:80"
2 years ago
#- "3000:3000"
2 years ago
networks:
hybrid-net:
volumes:
2 years ago
#- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
2 years ago
- ${nodepath}/ecosystem.config.js:/home/node/swarmlab-app/ecosystem.config.js
- ${nodepath}/dist:/home/node/swarmlab-app/dist
2 years ago
- ${nodepath}/src-local:/home/node/swarmlab-app/dist/src-local
2 years ago
#- ${nodepath}/src-local/llo/new.js:/home/node/server/llo/new.js
2 years ago
#- ${nodepath}/src-local/llo:/home/node/server/llo
2 years ago
#- ${nodepath}/hybrid/swarmlab-sec:/home/node/server/hybrid
2 years ago
# proxy
- ${nodepath}/nginx/swarmlab-stats-proxy-server.conf:/etc/nginx/conf.d/default.conf
- ${nodepath}/keys/swarmlab.crt:/etc/nginx/swarmlab.crt
- ${nodepath}/keys/swarmlab.key:/etc/nginx/swarmlab.key
2 years ago
#command: [nginx-debug, '-g', 'daemon off;']
2 years ago
8 months ago
swarmlabfilemanager:
image: hub.swarmlab.io:5480/swarmlab-filemanager:latest
user: docker
#privileged: true
container_name: swarmlab-filemanager-agent
8 months ago
entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
8 months ago
environment:
- NODENAME={{.Node.Hostname}}
- NODEID={{.Node.ID}}
ports:
- "3382:8080"
volumes:
- ${nodepath}/src-local/instance:/data
- /etc/localtime:/etc/localtime:ro
8 months ago
networks:
hybrid-net:
2 years ago
8 months ago
swarmlabvolumemanager:
image: hub.swarmlab.io:5480/swarmlab-filemanager:latest
user: docker
#privileged: true
container_name: swarmlab-volumemanager-agent
entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
environment:
- NODENAME={{.Node.Hostname}}
- NODEID={{.Node.ID}}
ports:
- "3383:8080"
volumes:
- ${nodepath}/src-local/mybackups:/data
- /etc/localtime:/etc/localtime:ro
networks:
hybrid-net:
8 months ago
swarmlabeditor:
image: hub.swarmlab.io:5480/swarmlab-codeserver:latest
user: root
container_name: swarmlab-editor-agent
entrypoint: ["sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
environment:
- NODENAME={{.Node.Hostname}}
- NODEID={{.Node.ID}}
volumes:
- ${nodepath}/files/sec_bootstrap:/usr/local/bin/sec_bootstrap
networks:
hybrid-net:
8 months ago
swarmlabadmin:
container_name: 'swarmlabadmin'
8 months ago
build:
context: .
dockerfile: files/Dockerfile
args:
USER_ID: ${USER_ID}
USER_NAME: ${USER_NAME}
GROUP_ID: ${GROUP_ID}
GROUP_NAME: ${GROUP_NAME}
8 months ago
entrypoint: /bin/bash -c "tail -f /dev/null"
user: root
network_mode: host
cap_add:
- NET_ADMIN
- SYS_MODULE
volumes:
- /lib/modules:/lib/modules
- ${nodepath}/src-local/instance:/instance
7 months ago
- ${nodepath}/src-local/community:/community
8 months ago
7 months ago
swarmlabsidecarserver:
image: hub.swarmlab.io:5480/hybrid-nginx:latest
7 months ago
user: root
7 months ago
#privileged: true
container_name: swarmlab-sidecar-agent
entrypoint: ["/usr/bin/sec_bootstrap", "role=masterservice", "sec_master_service_name=masterservice", "sec_worker_service_name=workerservice"]
environment:
- NODENAME={{.Node.Hostname}}
- NODEID={{.Node.ID}}
ports:
- "3384:80"
volumes:
- ${nodepath}/src-local/instance:/data/www/instance
- ${nodepath}/src-local/community:/data/www/community
- ${nodepath}/src-local/myconfig/sec_bootstrap:/usr/bin/sec_bootstrap
- ${nodepath}/src-local/myconfig/nginx.conf:/etc/nginx/nginx.conf
- ${nodepath}/src-local/myconfig/default.conf:/etc/nginx/conf.d/default.conf
7 months ago
- ${nodepath}/src-local/myconfig/supervisord.conf:/etc/supervisor/supervisord.conf
7 months ago
- /etc/localtime:/etc/localtime:ro
networks:
hybrid-net:
2 years ago
networks:
hybrid-net: