rsocials-online/docker-compose.yml

45 lines
1.2 KiB
YAML

services:
rsocials:
build:
context: .
dockerfile: Dockerfile
container_name: rsocials
restart: unless-stopped
environment:
- GEMINI_API_KEY=${GEMINI_API_KEY}
- RUNPOD_API_KEY=${RUNPOD_API_KEY}
- RUNPOD_GEMINI_ENDPOINT_ID=${RUNPOD_GEMINI_ENDPOINT_ID:-ntqjz8cdsth42i}
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL:-https://rsocials.online}
- DATA_DIR=/app/data
volumes:
- zine-data:/app/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.rsocials.rule=Host(`rsocials.online`) || Host(`www.rsocials.online`)"
- "traefik.http.routers.rsocials.entrypoints=web"
- "traefik.http.services.rsocials.loadbalancer.server.port=3000"
- "traefik.docker.network=traefik-public"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
networks:
- traefik-public
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp
- /home/nextjs/.npm
volumes:
zine-data:
networks:
traefik-public:
external: true