#!/bin/bash
uwsgi --ini /home/xx/uwsgi.ini
docker-compose.xml
web:
build: .
#entrypoint: sh /home/xx/start.sh
ports:
- "8000:8000"
expose:
- "8000"
volumes:
- .:/home/xx
- xx_media_vol:/homexx/media
- ./compose/uwsgi:/tmp
links:
- db
depends_on:
- db
environment:
- DEBUG=True
restart: always
tty: true
stdin_open: true
目的:container 启动之后 不去 docker exec -it 1321sdsfsf123 /bin/bash ,启动./start.sh ;
直接 container 启动的时候就 执行./start.sh
该如何弄呢?
2
raullf OP @wangyong1027480 试了,不行呢
|
3
Vegetable 2021-07-28 14:45:00 +08:00
compose 文件配置好 working_dir: /path/to/your/src
go to #1 |
5
zachlhb 2021-07-29 18:05:25 +08:00 via iPhone
为啥不用 tornado 托管,运行维护都非常方便
|