mirror of
https://github.com/openmax-server/server.git
synced 2026-05-24 04:21:42 +03:00
feat: 23 опкод для регистрации, смс шлюз, докер
This commit is contained in:
28
sms-gateway/docker-compose.yml
Normal file
28
sms-gateway/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
sms-gateway:
|
||||
build: .
|
||||
ports:
|
||||
- "8100:8000"
|
||||
volumes:
|
||||
- ./config.yaml:/app/config.yaml:ro
|
||||
environment:
|
||||
- CONFIG_PATH=/app/config.yaml
|
||||
depends_on:
|
||||
redis:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
command: redis-server --save 60 1 --loglevel warning
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
Reference in New Issue
Block a user