mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 03:15:05 +08:00
57 lines
1.1 KiB
YAML
57 lines
1.1 KiB
YAML
version: '3.1'
|
|
|
|
services:
|
|
redis:
|
|
image: redis:alpine
|
|
restart: always
|
|
logging:
|
|
driver: none
|
|
|
|
mongo:
|
|
image: mongo
|
|
restart: always
|
|
volumes:
|
|
- ./mongo_data/mongodb:/data/db
|
|
logging:
|
|
driver: none
|
|
|
|
socat:
|
|
image: alpine/socat
|
|
restart: always
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
entrypoint: [ "socat", "tcp-listen:2375,fork,reuseaddr","unix-connect:/var/run/docker.sock" ]
|
|
|
|
yyets-web:
|
|
image: bennythink/yyetsbot
|
|
restart: unless-stopped
|
|
environment:
|
|
- mongo=mongo
|
|
working_dir: /YYeTsBot/yyetsweb/
|
|
command: [ "python3","server.py","-h=0.0.0.0" ]
|
|
ports:
|
|
- 0.0.0.0:8888:8888
|
|
|
|
yyets-bot:
|
|
image: bennythink/yyetsbot
|
|
depends_on:
|
|
- redis
|
|
- socat
|
|
- mongo
|
|
restart: on-failure
|
|
env_file:
|
|
- env/yyets.env
|
|
|
|
nginx:
|
|
restart: always
|
|
image: nginx:alpine
|
|
volumes:
|
|
- ./conf:/etc/nginx/conf.d
|
|
- /home/photos:/usr/share/nginx/html/photos
|
|
- ./certs/:/etc/nginx/certs/
|
|
- ./logs:/var/log/nginx/
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
environment:
|
|
TZ: Asia/Shanghai |