deployment/stacks/mealie.yml

86 lines
1.8 KiB
YAML
Raw Normal View History

2022-03-20 12:08:09 +01:00
version: '3.4'
services:
2022-09-25 12:39:38 +02:00
frontend:
2022-10-26 15:03:17 +02:00
image: 'hkotel/mealie:frontend-v1.0.0beta-5'
2022-03-20 12:08:09 +01:00
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.class.mealie==true'
labels:
- 'traefik.enable=true'
2022-09-25 12:39:38 +02:00
- 'traefik.http.routers.mealie-frontend.rule=Host(`cook.rustybever.be`)'
- 'traefik.http.routers.mealie-frontend.tls=true'
- 'traefik.http.routers.mealie-frontend.tls.certresolver=letsEncrypt'
2022-09-25 12:46:48 +02:00
- 'traefik.http.services.mealie-frontend.loadbalancer.server.port=3000'
2022-03-20 12:08:09 +01:00
environment:
2022-09-25 12:39:38 +02:00
API_URL: 'http://api:9000'
ALLOW_SIGNUP: 'false'
2022-03-20 12:08:09 +01:00
networks:
- 'default'
2022-09-25 12:39:38 +02:00
- 'public'
2022-03-20 12:08:09 +01:00
volumes:
- 'data:/app/data'
2022-09-25 12:39:38 +02:00
api:
2022-10-26 15:03:17 +02:00
image: 'hkotel/mealie:api-v1.0.0beta-5'
2022-09-25 12:39:38 +02:00
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:
2022-10-12 12:04:07 +02:00
MAX_WORKERS: 1
WEB_CONCURRENCY: 1
2022-09-25 12:39:38 +02:00
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'
2022-03-20 12:08:09 +01:00
networks:
public:
external: true
volumes:
data:
2022-09-25 12:39:38 +02:00
db-data: