Skip to content

使用docker-compose部署uwsgi+mysql+redis+nginx 环境的Django项目基本模版

Notifications You must be signed in to change notification settings

mgw2168/docker-compose-base-template

Repository files navigation

docker-compose-base-template

a docker-compose demo

Build Status

python django docker docker-compose mysql nginx redis

1. 运行

docker及docker-compose 安装略

1.配置国内镜像源

创建或者修改:

/etc/docker/daemon.json 加入以下内容:

{
    "registry-mirrors": [
        "https://kfwkfulq.mirror.aliyuncs.com",
        "https://2lqq34jg.mirror.aliyuncs.com",
        "https://pee6w651.mirror.aliyuncs.com",
        "https://registry.docker-cn.com",
        "http://hub-mirror.c.163.com"
     ],
    "dns": ["8.8.8.8","8.8.4.4"]
}

2.运行
docker-compose -f docker-compose.yml up -d --build

备注:

若是Windows环境写的在Linux环境部署

报错:

standard_init_linux.go:211: exec user process caused "no such file or directory"

解决:

则需要使用vi编辑器修改docker-entrypoint.sh, fileformat=unix

About

使用docker-compose部署uwsgi+mysql+redis+nginx 环境的Django项目基本模版

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published