2021-02-10 15:15:38 +08:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
redis:
|
2022-10-26 20:14:39 +08:00
|
|
|
image: redis:7-alpine
|
2021-02-10 15:15:38 +08:00
|
|
|
restart: always
|
|
|
|
|
logging:
|
|
|
|
|
driver: none
|
|
|
|
|
|
|
|
|
|
mongo:
|
2022-10-26 20:14:39 +08:00
|
|
|
image: mongo:6
|
2021-02-10 15:15:38 +08:00
|
|
|
restart: always
|
|
|
|
|
volumes:
|
2021-06-12 11:22:57 +08:00
|
|
|
- ./mongo_data/mongodb:/data/db
|
2023-03-07 19:27:20 +01:00
|
|
|
command: --quiet
|
2021-02-10 15:15:38 +08:00
|
|
|
logging:
|
|
|
|
|
driver: none
|
2021-08-15 12:28:19 +08:00
|
|
|
ports:
|
2023-03-07 19:27:20 +01:00
|
|
|
- "127.0.0.1:27017:27017"
|
2021-08-15 12:28:19 +08:00
|
|
|
|
2023-03-07 21:21:40 +01:00
|
|
|
mysql:
|
|
|
|
|
image: ubuntu/mysql:8.0-22.04_beta
|
|
|
|
|
restart: on-failure
|
|
|
|
|
environment:
|
|
|
|
|
MYSQL_ROOT_PASSWORD: 'root'
|
|
|
|
|
logging:
|
|
|
|
|
driver: none
|
|
|
|
|
command: "--skip-log-bin --default-authentication-plugin=mysql_native_password"
|
|
|
|
|
|
2021-02-10 15:15:38 +08:00
|
|
|
socat:
|
2023-03-07 19:27:20 +01:00
|
|
|
image: bennythink/socat
|
2021-02-10 15:15:38 +08:00
|
|
|
restart: always
|
|
|
|
|
volumes:
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
entrypoint: [ "socat", "tcp-listen:2375,fork,reuseaddr","unix-connect:/var/run/docker.sock" ]
|
2023-03-07 19:27:20 +01:00
|
|
|
logging:
|
|
|
|
|
driver: none
|
2021-02-10 15:15:38 +08:00
|
|
|
|
2023-03-07 19:27:20 +01:00
|
|
|
mailhog:
|
|
|
|
|
image: cd2team/mailhog
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
logging:
|
|
|
|
|
driver: none
|
|
|
|
|
|
|
|
|
|
bot:
|
2021-02-10 15:15:38 +08:00
|
|
|
image: bennythink/yyetsbot
|
|
|
|
|
depends_on:
|
|
|
|
|
- redis
|
|
|
|
|
- mongo
|
2023-03-07 19:27:20 +01:00
|
|
|
- socat
|
|
|
|
|
restart: always
|
2021-02-10 15:15:38 +08:00
|
|
|
env_file:
|
2021-06-12 11:22:57 +08:00
|
|
|
- env/yyets.env
|
|
|
|
|
|
2023-03-07 19:27:20 +01:00
|
|
|
web:
|
|
|
|
|
image: bennythink/yyetsbot
|
2021-06-12 11:22:57 +08:00
|
|
|
restart: always
|
2023-03-07 19:27:20 +01:00
|
|
|
env_file:
|
|
|
|
|
- env/yyets.env
|
|
|
|
|
depends_on:
|
|
|
|
|
- mongo
|
|
|
|
|
- redis
|
2023-03-07 21:21:40 +01:00
|
|
|
- mysql
|
2023-03-07 19:27:20 +01:00
|
|
|
working_dir: /YYeTsBot/yyetsweb/
|
|
|
|
|
command: [ "python3","server.py","-h=0.0.0.0" ]
|
2021-06-12 11:22:57 +08:00
|
|
|
ports:
|
2023-03-07 19:27:20 +01:00
|
|
|
- "127.0.0.1:8888:8888"
|
2023-03-09 23:04:00 +01:00
|
|
|
- "172.17.0.1:8888:8888"
|
|
|
|
|
|
|
|
|
|
meili:
|
|
|
|
|
image: getmeili/meilisearch:v1.0.2
|
|
|
|
|
restart: always
|
|
|
|
|
ports:
|
|
|
|
|
- "127.0.0.1:7700:7700"
|
|
|
|
|
environment:
|
|
|
|
|
- MEILI_HTTP_PAYLOAD_SIZE_LIMIT=1073741824 #1GiB
|
|
|
|
|
volumes:
|
|
|
|
|
- meilisearch_data:/meili_data
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
meilisearch_data:
|