2021-10-18 08:54:32 +00:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
main:
|
2024-01-09 22:48:00 +00:00
|
|
|
image: registry.verdnatura.es/worker-time-control:${BRANCH_NAME:?}
|
2021-10-20 13:32:49 +00:00
|
|
|
build: .
|
2021-10-18 08:54:32 +00:00
|
|
|
ports:
|
|
|
|
- 80
|
2021-10-20 13:26:27 +00:00
|
|
|
configs:
|
|
|
|
- source: config
|
|
|
|
target: /usr/local/apache2/htdocs/config.js
|
2021-10-18 08:54:32 +00:00
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == worker
|
2023-03-06 08:38:56 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 500M
|
2021-10-20 13:26:27 +00:00
|
|
|
configs:
|
|
|
|
config:
|
|
|
|
external: true
|
2021-10-21 11:36:27 +00:00
|
|
|
name: worker-time-control_${BRANCH_NAME:?}_config
|