worker-time-control/docker-compose.yml

23 lines
475 B
YAML

version: '3.7'
services:
main:
image: registry.verdnatura.es/worker-time-control:${BRANCH_NAME:?}
build: .
ports:
- 80
configs:
- source: config
target: /usr/local/apache2/htdocs/config.js
deploy:
replicas: 1
placement:
constraints:
- node.role == worker
resources:
limits:
memory: 500M
configs:
config:
external: true
name: worker-time-control_${BRANCH_NAME:?}_config