-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.env.yml
41 lines (41 loc) · 994 Bytes
/
docker-compose.env.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3'
services:
nodejs-boilerplate:
image: dtr.${DOCKER_DOMAIN}/${DTR_ORG_NAME}/${DTR_REPO_NAME}:${BUILD_SOURCEVERSION}
ports:
- "4000"
environment:
- ENC_SALT=${ENC_SALT}
labels:
com.docker.ucp.mesh.http: "true"
networks:
default:
hrm:
# logging:
# driver: gelf
# options:
# gelf-address: "udp://$GRAYLOG_HOST:12201"
# tag: "postclosing-userrole-${NAME_ENV}"
deploy:
placement:
constraints:
- node.platform.os == linux
labels:
com.docker.ucp.mesh.http: "external_route=http://$LAUNCH_URL_HOST,internal_port=4000"
com.docker.ucp.access.label: ${DDC_COLLECTION}
mode: global
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
resources:
limits:
cpus: '0'
reservations:
cpus: '0'
networks:
default:
hrm:
external:
name: ${DDC_NETWORK}