加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 3.12 KB
一键复制 编辑 原始数据 按行查看 历史
kuaifan 提交于 2021-07-27 21:20 . use php8.0
version: '3'
services:
php:
container_name: "dooteak-php-${DOCKER_ID}"
image: "kuaifan/dootaskphp:8.0"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/crontab/crontab.conf:/etc/supervisor/conf.d/crontab.conf
- ./docker/dns/dns.conf:/etc/supervisor/conf.d/dns.conf
- ./docker/php/php.conf:/etc/supervisor/conf.d/php.conf
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- ./docker/log/supervisor:/var/log/supervisor
- ./:/var/www
- /etc/localtime:/etc/localtime:ro
environment:
TZ: "Asia/Shanghai"
LANG: "C.UTF-8"
MODE: "production"
MYSQL_HOST: "${DB_HOST}"
MYSQL_PORT: "${DB_PORT}"
MYSQL_DB_NAME: "${DB_DATABASE}"
MYSQL_USERNAME: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
networks:
extnetwork:
ipv4_address: 10.22.22.2
depends_on:
- redis
- mariadb
restart: unless-stopped
nginx:
container_name: "dooteak-nginx-${DOCKER_ID}"
image: "nginx:alpine"
ports:
- "${APP_PORT}:80"
- "${APP_PORT_SSL}:443"
volumes:
- ./docker/nginx:/etc/nginx/conf.d
- ./public:/var/www/public
- /etc/localtime:/etc/localtime:ro
environment:
TZ: "Asia/Shanghai"
networks:
extnetwork:
ipv4_address: 10.22.22.3
depends_on:
- php
restart: unless-stopped
redis:
container_name: "dooteak-redis-${DOCKER_ID}"
image: "redis:alpine"
environment:
TZ: "Asia/Shanghai"
networks:
extnetwork:
ipv4_address: 10.22.22.4
restart: unless-stopped
mariadb:
container_name: "dooteak-mariadb-${DOCKER_ID}"
image: "mariadb"
ports: # mysql ports item
- "33062:3306" # mysql ports value
volumes:
- ./docker/mysql/conf.d:/etc/mysql/conf.d
- ./docker/mysql/data:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
TZ: "Asia/Shanghai"
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
MYSQL_DATABASE: "${DB_DATABASE}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
networks:
extnetwork:
ipv4_address: 10.22.22.5
restart: unless-stopped
office:
container_name: "dooteak-office-${DOCKER_ID}"
image: "onlyoffice/documentserver:6.3.1.32"
volumes:
- ./docker/office/data:/var/www/onlyoffice/Data
- ./docker/office/logs:/var/log/onlyoffice
- ./docker/office/resources/documenteditor/css/app.css:/var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/main/resources/css/app.css
- ./docker/office/resources/presentationeditor/css/app.css:/var/www/onlyoffice/documentserver/web-apps/apps/presentationeditor/main/resources/css/app.css
- ./docker/office/resources/spreadsheeteditor/css/app.css:/var/www/onlyoffice/documentserver/web-apps/apps/spreadsheeteditor/main/resources/css/app.css
environment:
TZ: "Asia/Shanghai"
networks:
extnetwork:
ipv4_address: 10.22.22.6
restart: unless-stopped
networks:
extnetwork:
name: "dooteak-networks-${DOCKER_ID}"
ipam:
config:
- subnet: 10.22.22.0/24
gateway: 10.22.22.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化