Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff1fddb111 | ||
|
|
ee594dc1d3 | ||
|
|
82a3f0e2d2 | ||
|
|
3ab0875242 | ||
|
|
60ac4f50a5 |
+53
-35
@@ -1,52 +1,70 @@
|
|||||||
services:
|
services:
|
||||||
mealie:
|
SnapOtter:
|
||||||
image: ghcr.io/mealie-recipes/mealie:v2.8.0
|
image: snapotter/snapotter:latest # or ghcr.io/snapotter-hq/snapotter:latest
|
||||||
container_name: mealie
|
container_name: snapotter
|
||||||
restart: always
|
# ports:
|
||||||
# ports:
|
# - "1349:1349"
|
||||||
# - 9925:9000
|
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 1000M #
|
|
||||||
networks:
|
networks:
|
||||||
- bragi-local
|
- bragi-local
|
||||||
volumes:
|
volumes:
|
||||||
- /home/shrek/docker/stack/mealie/mealie-data:/app/data/
|
- /opt/10_images/snapotter:/data
|
||||||
environment:
|
environment:
|
||||||
ALLOW_SIGNUP: "false"
|
- AUTH_ENABLED=true
|
||||||
TZ: Europe/Berlin
|
- DEFAULT_USERNAME=admin
|
||||||
DB_ENGINE: postgres
|
- DEFAULT_PASSWORD=admin
|
||||||
POSTGRES_USER: mealie
|
- DATABASE_URL=postgres://snapotter:snapotter@postgres:5432/snapotter
|
||||||
POSTGRES_PASSWORD: mealie
|
- REDIS_URL=redis://redis:6379
|
||||||
POSTGRES_SERVER: postgres
|
|
||||||
POSTGRES_PORT: 5432
|
|
||||||
POSTGRES_DB: mealie
|
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
redis:
|
||||||
|
condition: service_healthy
|
||||||
|
restart: unless-stopped
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
reservations:
|
||||||
|
devices:
|
||||||
|
- driver: nvidia
|
||||||
|
count: 1
|
||||||
|
capabilities: [gpu]
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
image: postgres:17-alpine
|
||||||
|
container_name: snapotter_postgres
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: snapotter
|
||||||
|
POSTGRES_PASSWORD: snapotter
|
||||||
|
POSTGRES_DB: snapotter
|
||||||
networks:
|
networks:
|
||||||
- bragi-local
|
- bragi-local
|
||||||
container_name: 04_groceries_postgres
|
|
||||||
image: postgres:15
|
|
||||||
restart: always
|
|
||||||
volumes:
|
volumes:
|
||||||
- /home/shrek/docker/stack/mealie/mealie-pgdata:/var/lib/postgresql/data
|
- /opt/10_images/postgresql:/var/lib/postgresql/data
|
||||||
environment:
|
restart: unless-stopped
|
||||||
POSTGRES_PASSWORD: mealie
|
|
||||||
POSTGRES_USER: mealie
|
|
||||||
PGUSER: mealie
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test: ["CMD-SHELL", "pg_isready -U snapotter"]
|
||||||
- CMD
|
interval: 10s
|
||||||
- pg_isready
|
timeout: 5s
|
||||||
interval: 30s
|
retries: 12
|
||||||
timeout: 20s
|
|
||||||
retries: 3
|
redis:
|
||||||
|
container_name: snapotter_redis
|
||||||
|
networks:
|
||||||
|
- bragi-local
|
||||||
|
image: redis:8-alpine
|
||||||
|
command: ["redis-server", "--maxmemory-policy", "noeviction", "--appendonly", "yes"]
|
||||||
|
volumes:
|
||||||
|
- /opt/10_images/redis:/data
|
||||||
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 12
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mealie-data: null
|
SnapOtter-data:
|
||||||
mealie-pgdata: null
|
SnapOtter-pgdata:
|
||||||
|
SnapOtter-redisdata:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
bragi-local:
|
bragi-local:
|
||||||
|
|||||||
Reference in New Issue
Block a user