2 Star 0 Fork 0

h_hhhhh/连铸系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 3.02 KB
一键复制 编辑 原始数据 按行查看 历史
mojerro 提交于 2024-10-12 14:57 . update
services:
backend:
image: directus/directus:10.12.1
restart: always
ports:
- "28055:8055"
networks:
- lianzhu
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# By default, uploads are stored in /directus/uploads
# Always make sure your volumes matches the storage root when using
# local driver
- ./lianzhu/uploads:/directus/uploads
# Make sure to also mount the volume when using SQLite
# - ./database:/directus/database
# If you want to load extensions from the host
- ./lianzhu/extensions:/directus/extensions
environment:
MAX_PAYLOAD_SIZE: 100mb
NODE_ENV: development
TZ: Asia/Shanghai
KEY: "255d861b-5ea1-5996-9aa3-922530ec40b1"
SECRET: "6116487b-cda1-52c2-b5b5-c8022c45e263"
ROOT_REDIRECT: "false"
ACCESS_TOKEN_TTL: "180d"
SESSION_COOKIE_TTL: "180d"
REFRESH_TOKEN_TTL: "365d"
WEBSOCKETS_ENABLED: "true"
# CORS_ENABLED: "true"
# CORS_ORIGIN: "true"
DB_CLIENT: mysql
DB_HOST: mysql
DB_PORT: 3306
DB_DATABASE: lianzhu
DB_USER: lianzhu
DB_PASSWORD: "lianzhupass"
DB_POOL_MIN: 0
CACHE_ENABLED: "true"
CACHE_AUTO_PURGE: "true"
CACHE_STORE: "redis"
REDIS: "redis://redis:6379/2"
TELEMETRY: "false"
ADMIN_EMAIL: "[email protected]"
ADMIN_PASSWORD: "lianzhupass"
# Make sure to set this in production
# (see https://docs.directus.io/configuration/config-options/#general)
# PUBLIC_URL: 'http://backend:28055'
depends_on:
- mysql
mysql:
image: bitnami/mysql:8.0
restart: always
ports:
- "23306:3306"
volumes:
- ./mysql-data:/bitnami/mysql/data
environment:
TZ: Asia/Shanghai
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
MYSQL_ROOT_PASSWORD: lianzhupass
MYSQL_USER: lianzhu
MYSQL_PASSWORD: lianzhupass
MYSQL_DATABASE: lianzhu
networks:
- lianzhu
redis:
image: redis:7.2.5-alpine
restart: always
environment:
- TZ=Asia/Shanghai
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
ports:
- "26379:6379"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- redis-data:/data
networks:
- lianzhu
python:
build:
context: ./trigger
restart: always
# command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
environment:
- TZ=Asia/Shanghai
ports:
- 23380:80
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./:/data
plc_read:
build:
context: ./plc_read
restart: always
environment:
- TZ=Asia/Shanghai
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
volumes:
redis-data:
driver: local
mysql-data:
driver: local
networks:
lianzhu:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/h-hhhh/continuous-casting-system.git
[email protected]:h-hhhh/continuous-casting-system.git
h-hhhh
continuous-casting-system
连铸系统
master

搜索帮助