This commit is contained in:
Giles Bradshaw 2020-05-11 19:53:19 +01:00
parent 34e0e8f1a7
commit df03e066f9
1 changed files with 18 additions and 0 deletions

View File

@ -3,6 +3,12 @@ version: '3'
services:
huginn:
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
image: huginn/huginn
environment:
# For huginn/huginn - essential
@ -26,6 +32,12 @@ services:
- externalnet
db:
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack-data == yes]
replicas: 1
restart_policy:
condition: any
environment:
- POSTGRES_USER=huginn
- POSTGRES_PASSWORD=<database password>
@ -40,6 +52,12 @@ services:
- externalnet
db-backup:
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack-data == yes]
replicas: 1
restart_policy:
condition: any
image: postgres:latest
environment:
- POSTGRES_USER=huginn