1 Star 0 Fork 0

xiayulu/sophia-0.0.4

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
django-compose.yml 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
xiayulu 提交于 2021-06-20 12:54 . remove: django
version: '3.5'
services:
postgres:
image: postgres:13
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
volumes:
- /data/pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- sophia
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
restart: unless-stopped
links:
- postgres
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
PGADMIN_LISTEN_PORT: 5431
ports:
- 5431:5431
volumes:
- /data/pgadmin:/root/.pgadmin
networks:
- sophia
django:
build: apis
container_name: django
restart: unless-stopped
command: gunicorn apis.wsgi:application --bind 0.0.0.0:8000
env_file:
- .env
ports:
- 8000:8000
depends_on:
- postgres
networks:
- sophia
networks:
sophia:
driver: bridge
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/xiayulu/sophia-0.0.4.git
git@gitee.com:xiayulu/sophia-0.0.4.git
xiayulu
sophia-0.0.4
sophia-0.0.4
master

搜索帮助