Pim Kunis
111bf68a0a
move docker swarm ansible to this repo move thecloud ansible to this repo support data disks in terraform
45 lines
1.1 KiB
Django/Jinja
45 lines
1.1 KiB
Django/Jinja
# vi: ft=yaml
|
|
version: '3.7'
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
kitchenowl:
|
|
|
|
volumes:
|
|
data:
|
|
driver_opts:
|
|
type: "nfs"
|
|
o: "addr=192.168.30.10,nolock,soft,rw"
|
|
device: ":/mnt/data/kitchenowl/data"
|
|
|
|
services:
|
|
front:
|
|
image: tombursch/kitchenowl-web:v0.4.17
|
|
depends_on:
|
|
- back
|
|
networks:
|
|
- traefik
|
|
- kitchenowl
|
|
deploy:
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.kitchenowl.entrypoints=websecure
|
|
- traefik.http.routers.kitchenowl.rule=Host(`boodschappen.kun.is`)
|
|
- traefik.http.routers.kitchenowl.tls=true
|
|
- traefik.http.routers.kitchenowl.tls.certresolver=letsencrypt
|
|
- traefik.http.routers.kitchenowl.service=kitchenowl
|
|
- traefik.http.services.kitchenowl.loadbalancer.server.port=80
|
|
- traefik.docker.network=traefik
|
|
back:
|
|
image: tombursch/kitchenowl:v88
|
|
networks:
|
|
- kitchenowl
|
|
environment:
|
|
- JWT_SECRET_KEY={{ jwt_secret_key }}
|
|
volumes:
|
|
- type: volume
|
|
source: data
|
|
target: /data
|
|
volume:
|
|
nocopy: true
|