Added pieter stack

master
Jef Roosens 2021-12-31 12:35:57 +01:00
parent 412fa99880
commit 5d0291c538
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 34 additions and 0 deletions

34
stacks/pieter.yml 100644
View File

@ -0,0 +1,34 @@
version: '3'
services:
app:
# Latest contains a development version
image: 'chewingbever/pieter:0.1.0'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class==admin'
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.pieter.rule=Host(`pkgs.rustybever.be`)'
- 'traefik.http.routers.pieter.tls=true'
- 'traefik.http.routers.pieter.tls.certresolver=letsEncrypt'
- 'traefik.http.services.pieter.loadbalancer.server.port=3000'
environment:
- 'API_KEY'
networks:
- 'public'
volumes:
- 'data:/data'
networks:
public:
external: true
volumes:
data: