mealie: switched to 1.0.0 beta

master
Jef Roosens 2022-09-25 12:39:38 +02:00
parent 8381f47992
commit 602dadc7ef
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 58 additions and 23 deletions

View File

@ -1,8 +1,8 @@
version: '3.4' version: '3.4'
services: services:
app: frontend:
image: 'hkotel/mealie:v0.5.6' image: 'hkotel/mealie:frontend-v1.0.0beta-4'
deploy: deploy:
mode: 'replicated' mode: 'replicated'
@ -12,36 +12,71 @@ services:
- 'node.labels.class.mealie==true' - 'node.labels.class.mealie==true'
labels: labels:
- 'traefik.enable=true' - 'traefik.enable=true'
- 'traefik.http.routers.mealie.rule=Host(`cook.rustybever.be`)' - 'traefik.http.routers.mealie-frontend.rule=Host(`cook.rustybever.be`)'
- 'traefik.http.routers.mealie.tls=true' - 'traefik.http.routers.mealie-frontend.tls=true'
- 'traefik.http.routers.mealie.tls.certresolver=letsEncrypt' - 'traefik.http.routers.mealie-frontend.tls.certresolver=letsEncrypt'
- 'traefik.http.services.mealie.loadbalancer.server.port=80' - 'traefik.http.services.mealie-frontend.loadbalancer.server.port=9925'
environment: environment:
- 'PUID=1000' API_URL: 'http://api:9000'
- 'PGID=1000' ALLOW_SIGNUP: 'false'
- 'TZ=Europe/Brussels'
# Default Recipe Settings
- 'RECIPE_PUBLIC=true'
- 'RECIPE_SHOW_NUTRITION=false'
- 'RECIPE_SHOW_ASSETS=true'
- 'RECIPE_LANDSCAPE_VIEW=true'
- 'RECIPE_DISABLE_COMMENTS=false'
- 'RECIPE_DISABLE_AMOUNT=false'
# My stuff
- 'BASE_URL=https://cook.rustybever.be'
- 'DEFAULT_GROUP=Default'
- 'API_DOCS=false'
networks: networks:
- public - 'public'
volumes: volumes:
- 'data:/app/data' - 'data:/app/data'
api:
image: 'hkotel/mealie:api-v1.0.0beta-4'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class.mealie==true'
environment:
# Server
PUID: 22
PGID: 22
BASE_URL: 'https://cook.rustybever.be'
TZ: 'Europe/Brussels'
# Database
DB_ENGINE: 'postgres'
POSTGRES_SERVER: 'db'
POSTGRES_PORT: 5432
POSTGRES_DB: 'mealie'
POSTGRES_USER: 'mealie'
POSTGRES_PASSWORD: 'mealie'
# Other
ALLOW_SIGNUP: 'false'
DEFAULT_EMAIL:
volumes:
- 'data:/app/data'
db:
image: 'postgres:14.5'
restart: 'always'
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class.mealie==true'
environment:
POSTGRES_USER: 'mealie'
POSTGRES_PASSWORD: 'mealie'
volumes:
- 'db-data:/var/lib/postgresql/data'
networks: networks:
public: public:
external: true external: true
volumes: volumes:
data: data:
db-data: