2022-03-29 16:34:59 +02:00
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
image: 'chewingbever/site:latest'
|
|
|
|
|
|
|
|
deploy:
|
2022-04-02 14:01:21 +02:00
|
|
|
mode: 'replicated'
|
|
|
|
replicas: 1
|
|
|
|
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- 'node.labels.class == admin'
|
|
|
|
|
2022-03-29 16:34:59 +02:00
|
|
|
labels:
|
|
|
|
- 'traefik.enable=true'
|
|
|
|
- 'traefik.http.routers.rb-web.rule=Host(`rustybever.be`) || Host(`www.rustybever.be`)'
|
|
|
|
- 'traefik.http.routers.rb-web.tls=true'
|
|
|
|
- 'traefik.http.routers.rb-web.tls.certresolver=letsEncrypt'
|
2022-04-02 14:01:21 +02:00
|
|
|
- 'traefik.http.services.rb-web.loadbalancer.server.port=3000'
|
2022-03-29 16:34:59 +02:00
|
|
|
|
2022-04-02 14:04:05 +02:00
|
|
|
environment:
|
|
|
|
- 'API_KEY'
|
2022-03-29 16:34:59 +02:00
|
|
|
networks:
|
|
|
|
- 'public'
|
2022-04-04 17:18:27 +02:00
|
|
|
- 'monitoring'
|
2022-04-02 14:01:21 +02:00
|
|
|
volumes:
|
|
|
|
- 'data:/data'
|
2022-03-29 16:34:59 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
public:
|
|
|
|
external: true
|
2022-04-04 17:18:27 +02:00
|
|
|
monitoring:
|
|
|
|
external: true
|
2022-04-02 14:01:21 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|