1 Star 0 Fork 1

makeup1122/fortuna

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yaml.bkup.20200720 1.89 KB
一键复制 编辑 原始数据 按行查看 历史
makeup1122 提交于 2020-07-21 11:53 . docker配置
version: "3.5"
services:
web:
# image: nginx:latest
container_name: fortuna-web
ports:
- ${APP_PORT}:80
depends_on:
- php-fpm
build:
context: ./front-end
dockerfile: Dockerfile
networks:
- fortuna-network
restart: always
environment:
NGINX_HOST: ${APP_HOST}
NGINX_PORT: 80
command: /bin/bash -c "envsubst < /etc/nginx/conf.d/front-end.conf.template > /etc/nginx/conf.d/front-end.conf && exec nginx -g 'daemon off;'"
volumes:
- type: bind
source: ./back-end/public/
target: /usr/share/nginx/html/back-end/public/
read_only: true
- type: bind
source: ./docker/nginx/conf.d/
target: /etc/nginx/conf.d/
- type: bind
source: ./docker/logs/nginx/
target: /var/log/nginx/
# read_only: true
composer:
image: composer
command: install
volumes:
- type: bind
source: ./back-end
target: /app
db:
image: mysql:5.7
networks:
- fortuna-network
environment:
MYSQL_ROOT_PASSWORD: 123123
MYSQL_DATABASE: fortuna
container_name: fortuna-db
restart: always
volumes:
- type: bind
source: ./docker/mysql/_data
target: /var/lib/mysql
# - type: bind
# source: ./docker/mysql/conf.d/
# target: /etc/mysql/conf.d/
- type: bind
source: ./docker/logs/mysql/
target: /var/log/mysql/
php-fpm:
container_name: fortuna-php-fpm
build:
context: ./back-end
dockerfile: Dockerfile
depends_on:
- db
networks:
- fortuna-network
restart: always
volumes:
- type: bind
source: ./back-end/
target: /var/www/html/
- type: bind
source: ./docker/logs/php-fpm/
target: /var/log/
networks:
fortuna-network:
driver: bridge
volumes:
db-volume:
# logs-volume:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/makeup1122/fortuna.git
git@gitee.com:makeup1122/fortuna.git
makeup1122
fortuna
fortuna
master

搜索帮助