加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.12 KB
一键复制 编辑 原始数据 按行查看 历史
妙正灰 提交于 2021-05-07 17:15 . 兼容升级
version: '3'
services:
mysql:
image: ${MySQLTYPE}:${MySQLVER}
container_name: mysql
command: --max_allowed_packet=256M
volumes:
- "./data/mysql:/var/lib/mysql:delegated"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
restart: always
litespeed:
container_name: litespeed
image: llstack/olstack:${LITESPEED}-${PHPVER}
env_file:
- .env
volumes:
- ./config/lsws/conf:/usr/local/lsws/conf
- ./config/lsws/admin-conf:/usr/local/lsws/admin/conf
- ./bin/container:/usr/local/bin
- ./sites:/var/www/vhosts/
- ./acme:/root/.acme.sh/
- ./logs/lsws/:/usr/local/lsws/logs/
ports:
- 80:80
- 443:443
- 443:443/udp
- 7080:7080
environment:
- TZ=${TimeZone}
restart: always
depends_on:
- mysql
- redis
# adminer:
# image: dockette/adminer:full
# container_name: adminer
# ports:
# - 8080:80
# environment:
# - MEMORY=-1
phpmyadmin:
image: bitnami/phpmyadmin:latest
ports:
- 8080:80
- 8443:443
environment:
DATABASE_HOST: mysql
restart: always
redis:
image: redis:${REDIS_VERSION}
sysctls:
net.core.somaxconn: '511'
container_name: redis
ports:
- "6379:6379"
volumes:
- ./config/redis/redis.conf:/etc/redis.conf
- ./data/redis/data:/data
- ./logs/redis/:/var/log/redis/
restart: always
entrypoint: ["redis-server", "/etc/redis.conf"]
environment:
- TZ=${TimeZone}
# phpredisadmin:
# image: erikdubbelboer/phpredisadmin:latest
# container_name: phpredisadmin
# ports:
# - "8082:80"
# environment:
# - REDIS_1_HOST=redis
# - REDIS_1_PORT=6379
# - TZ=${TimeZone}
# restart: always
# memcached:
# image: memcached:${MEMCACHED_VERSION}
# container_name: memcached
# ports:
# - "11211:11211"
# environment:
# MEMCACHED_CACHE_SIZE: "${MEMCACHED_CACHE_SIZE}"
# restart: always
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化