mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-10 05:42:58 +00:00
49 lines
1 KiB
YAML
49 lines
1 KiB
YAML
services:
|
|
|
|
nyaabooru:
|
|
restart: unless-stopped
|
|
container_name: nyaabooru
|
|
build:
|
|
context: ../
|
|
dockerfile: ./deploy/Dockerfile
|
|
volumes:
|
|
- ..:/app
|
|
ports:
|
|
- "8000:8000"
|
|
networks:
|
|
- nyaabooru-internal
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
|
|
db:
|
|
image: mongo:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- db_data:/data
|
|
networks:
|
|
- nyaabooru-internal
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
restart: unless-stopped
|
|
command: --save 60 1 --loglevel warning
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
|
start_period: 20s
|
|
interval: 30s
|
|
retries: 5
|
|
timeout: 3s
|
|
volumes:
|
|
- redis_data:/data
|
|
networks:
|
|
- nyaabooru-internal
|
|
|
|
volumes:
|
|
db_data:
|
|
redis_data:
|
|
|
|
networks:
|
|
nyaabooru-internal:
|
|
name: nyaabooru-internal
|
|
driver: bridge
|