stacks/kodbox/compose.yaml

40 lines
1.1 KiB
YAML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: "3.8"
services:
kodbox-db:
image: docker.citory.tech/mirror/mariadb:10.6
container_name: kodbox-db
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- ./db:/var/lib/mysql #./db是数据库持久化目录可以修改
environment:
- MYSQL_ROOT_PASSWORD=DeepGeek2025
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- .env
kodbox:
image: docker.citory.tech/mirror/kodcloud/kodbox:latest
container_name: kodbox
restart: always
ports:
- 10510:80 #左边80是使用端口可以修改
volumes:
- /home/deepgeek/data/data_base/kodbox/data:/var/www/html #./site是站点目录位置可以修改
environment:
- MYSQL_HOST=kodbox-db
- REDIS_HOST=kodbox-redis
env_file:
- .env
depends_on:
- kodbox-db
- kodbox-redis
kodbox-redis:
image: docker.citory.tech/mirror/redis:alpine
container_name: kodbox-redis
restart: always
x-dockge:
urls:
- http://local.citory.tech:10510
networks: {}