forked from Chatbot/v3-api
first commit v3 initialiazed a temporary repository for darmanet client
This commit is contained in:
51
docker-compose.yml
Normal file
51
docker-compose.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
api:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: chatbot-v2-api
|
||||
environment:
|
||||
- TZ=Asia/Tehran
|
||||
ports:
|
||||
- "4040:8585"
|
||||
env_file:
|
||||
- .local.env
|
||||
networks:
|
||||
- chatbot-v2
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- chatbot-v2-api:/usr/src/uploads
|
||||
- ./api-static:/usr/src/src/static
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
#- /etc/timezone:/etc/timezone:ro
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1'
|
||||
memory: '512M'
|
||||
|
||||
redis:
|
||||
image: redis:7.2-alpine
|
||||
container_name: chatbot-v2-redis
|
||||
volumes:
|
||||
- chatbot-v2_redis_data:/data
|
||||
ports:
|
||||
- "4041:6379"
|
||||
command: >
|
||||
redis-server --appendonly yes --save 60 1
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- chatbot-v2
|
||||
|
||||
|
||||
networks:
|
||||
chatbot-v2:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
chatbot-v2-api:
|
||||
name: chatbot-v2-api
|
||||
chatbot-v2_redis_data:
|
||||
name: chatbot-v2_redis_data
|
||||
Reference in New Issue
Block a user