ops/stacks/lvl6/stack.serverless.yml

167 lines
3.2 KiB
YAML

version: "3.7"
networks:
mother:
external: true
# ig games stack
services:
twentyfortyeight:
image: registry.vnfco.ir/ig/game/2048:latest
environment:
- TZ=Asia/Tehran
deploy:
update_config:
parallelism: 1
delay: 10s
order: start-first
restart_policy:
condition: any
delay: 5s
window: 120s
resources:
limits:
cpus: '0.5'
memory: 50M
replicas: 1
mode: replicated
placement:
constraints:
- node.role == worker
ports:
- 6001:80
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
networks:
- mother
sudoku:
image: registry.vnfco.ir/ig/game/sudoku:latest
environment:
- TZ=Asia/Tehran
deploy:
update_config:
parallelism: 1
delay: 10s
order: start-first
restart_policy:
condition: any
delay: 5s
window: 120s
resources:
limits:
cpus: '0.5'
memory: 50M
replicas: 1
mode: replicated
placement:
constraints:
- node.role == worker
ports:
- 6002:80
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
networks:
- mother
tetris:
image: registry.vnfco.ir/ig/game/tetris:latest
environment:
- TZ=Asia/Tehran
deploy:
update_config:
parallelism: 1
delay: 10s
order: start-first
restart_policy:
condition: any
delay: 5s
window: 120s
resources:
limits:
cpus: '0.5'
memory: 50M
replicas: 1
mode: replicated
placement:
constraints:
- node.role == worker
ports:
- 6005:80
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
networks:
- mother
doz:
image: registry.vnfco.ir/ig/game/doz:latest
environment:
- TZ=Asia/Tehran
deploy:
update_config:
parallelism: 1
delay: 10s
order: start-first
restart_policy:
condition: any
delay: 5s
window: 120s
resources:
limits:
cpus: '0.5'
memory: 20M
replicas: 1
mode: replicated
placement:
constraints:
- node.role == worker
ports:
- 6006:80
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
networks:
- mother
mafia:
image: registry.vnfco.ir/ig/game/mafia:latest
environment:
- TZ=Asia/Tehran
deploy:
update_config:
parallelism: 1
delay: 10s
order: start-first
restart_policy:
condition: any
delay: 5s
window: 120s
resources:
limits:
cpus: '0.5'
memory: 20M
replicas: 1
mode: replicated
placement:
constraints:
- node.role == worker
ports:
- 6003:80
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
networks:
- mother