31 lines
479 B
Django/Jinja
31 lines
479 B
Django/Jinja
# vim: ft=yaml
|
|
version: '3'
|
|
|
|
services:
|
|
app:
|
|
image: 'traefik:2.5'
|
|
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
|
|
networks:
|
|
- public
|
|
ports:
|
|
- '80:80'
|
|
- '443:443'
|
|
volumes:
|
|
- '/srv/traefik.yml:/etc/traefik/traefik.yml'
|
|
- 'acme:/etc/traefik/acme'
|
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
|
|
|
networks:
|
|
public:
|
|
external: true
|
|
|
|
volumes:
|
|
acme:
|