deployment/stacks/pieter.yml

35 lines
714 B
YAML
Raw Normal View History

2021-12-31 12:35:57 +01:00
version: '3'
services:
app:
# Latest contains a development version
2021-12-31 12:48:07 +01:00
image: 'chewingbever/pieter:0.1.1'
2021-12-31 12:35:57 +01:00
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=80'
2021-12-31 12:35:57 +01:00
environment:
- 'API_KEY'
networks:
- 'public'
volumes:
- 'data:/data'
networks:
public:
external: true
volumes:
data: