| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- services:
- api:
- build:
- context: ..
- dockerfile: deploy/Dockerfile.api
- container_name: spider_api
- ports:
- - "8200:8080"
- volumes:
- - ../configs:/app/configs
- - ../sessions:/app/sessions
- environment:
- - GIN_MODE=release
- - TG_SECRET_KEY=${TG_SECRET_KEY:-d9RkIHw7wLaa5Qx+B7/QOw5K6+bW67Ife4UK91h4Z2Q=}
- restart: unless-stopped
- healthcheck:
- test: ["CMD", "wget", "-q", "-O-", "http://localhost:8080/ping"]
- interval: 15s
- timeout: 5s
- retries: 3
- start_period: 120s
- networks:
- - chat_im_network
- web:
- build:
- context: ..
- dockerfile: deploy/Dockerfile.web
- container_name: spider_web
- ports:
- - "8300:80"
- depends_on:
- api:
- condition: service_healthy
- restart: unless-stopped
- healthcheck:
- test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/"]
- interval: 30s
- timeout: 5s
- retries: 3
- networks:
- - chat_im_network
- networks:
- chat_im_network:
- external: true
|