This commit is contained in:
Administrator 2022-08-15 16:23:40 +03:00
parent dc5e6df5bc
commit e0776dfffd
2 changed files with 31 additions and 1 deletions

View File

@ -9,6 +9,21 @@ services:
deploy: deploy:
mode: replicated mode: replicated
replicas: 1 replicas: 1
restart_policy:
condition: any
placement:
constraints: [node.role == manager]
update_config:
parallelism: 1
order: start-first
postgres:
image: postgres
volumes:
- /sprint-data/postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
deploy:
mode: replicated
restart_policy: restart_policy:
condition: any condition: any
placement: placement:

View File

@ -15,4 +15,19 @@ services:
constraints: [node.role == manager] constraints: [node.role == manager]
update_config: update_config:
parallelism: 1 parallelism: 1
order: start-first order: start-first
postgres:
image: postgres
volumes:
- /sprint-data/postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
deploy:
mode: replicated
restart_policy:
condition: any
placement:
constraints: [node.role == manager]
update_config:
parallelism: 1
order: start-first