Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- job "coupons-processing" {
- datacenters = ["dc1"]
- type = "system"
- update {
- max_parallel = 1
- min_healthy_time = "30s"
- healthy_deadline = "5m"
- auto_revert = true
- }
- group "processing" {
- task "processing" {
- driver = "docker"
- config {
- image = "artifactory.setmachine.ru:5000/coupon-processing/psql:localtest"
- auth {
- username = "admin"
- password = "tc324012"
- }
- port_map = {
- http = 8008,
- tcp = 5432
- }
- dns_servers = ["${NOMAD_IP_http}"]
- }
- env {
- "PATRONI_CONSUL_HOST"="${NOMAD_IP_http}:8500"
- "PATRONI_NAME"="dbnode_${NOMAD_IP_http}"
- "PATRONI_RESTAPI_CONNECT_ADDRESS"="${NOMAD_IP_http}:8008"
- "PATRONI_POSTGRESQL_CONNECT_ADDRESS"="${NOMAD_IP_http}:5432"
- }
- resources {
- cpu = 1000
- memory = 1500
- network {
- port "http" {
- static = "8008"
- },
- port "tcp" {
- static = "5432"
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement