app-store/apps/send/docker-compose.yml
Sergey Kodolov f9eef54574
chore: Send app improvements (#479)
* Send app improvements

- DETECT_BASE_URL env removed
- FILE_DIR env added
- redis healthcheck interval increased from 1s to 5s

* Update Tipi Version

---------

Co-authored-by: DrMxrcy <drmxrcy@gmail.com>
2023-05-21 19:00:36 -04:00

48 lines
1.2 KiB
YAML

version: "3.7"
services:
send:
image: registry.gitlab.com/timvisee/send:latest
container_name: send
restart: unless-stopped
dns:
- ${DNS_IP}
ports:
- ${APP_PORT}:1443
networks:
- tipi_main_network
volumes:
- ${APP_DATA_DIR}/data/uploads:/uploads
environment:
- NODE_ENV=production
# Networking
- BASE_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
# Redis
- REDIS_HOST=send-redis
# Storage Limit
- MAX_FILE_SIZE=2147483648
# Storage path
- FILE_DIR=/uploads
depends_on:
- send-redis
labels:
traefik.enable: ${APP_EXPOSED}
traefik.http.routers.send.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.send.entrypoints: websecure
traefik.http.routers.send.service: send
traefik.http.routers.send.tls.certresolver: myresolver
traefik.http.services.send.loadbalancer.server.port: 1443
send-redis:
image: redis:alpine
container_name: send-redis
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/data/redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 30
networks:
- tipi_main_network