2 Star 4 Fork 1

oliver/AI_NFT

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
olivergy 提交于 2022-08-09 15:33 . Fix: Change environment. Closes #1
version: '3'
services:
frontend:
user: "${UID}:${GID}"
restart: always
build:
context: .
dockerfile: dockerfiles/vuejs
depends_on:
- backend
ports:
- "${FRONTEND_PORT}:8080"
volumes:
- ./src/frontend:/opt/frontend
environment:
- HOST=0.0.0.0
- PORT=${FRONTEND_PORT}
- CHOKIDAR_USEPOLLING=true
- API_HOST=backend.docker.io
- API_PORT=80
backend:
user: "${UID}:${GID}"
restart: always
build:
context: .
dockerfile: dockerfiles/backend
depends_on:
- db
ports:
- "${BACKEND_PORT}:8002"
volumes:
- ./src/backend:/opt/backend
environment:
- PYTHONPATH=/opt/backend
- DJANGO_SETTINGS_MODULE=api.settings
- FRONTEND_PORT=${FRONTEND_PORT}
- POSTGRES_DB=docker
- POSTGRES_USER=root
- POSTGRES_PASSWORD=uNAU7CjeXn3jaqg
chainend:
# user: "${UID}:${GID}"
# restart: always
# build:
# context: .
# dockerfile: dockerfiles/chainend
# depends_on:
# - db
# ports:
# - "${CHAINEND_PORT}:8004"
build:
context: .
dockerfile: dockerfiles/chainend
command: bash
stdin_open: true
tty: true
ports:
- 8004:8080
volumes:
- ./src/chainend/source:/source
# environment:
# - PYTHONPATH=/opt/chainend
# - FRONTEND_PORT=${FRONTEND_PORT}
# - BACKEND_PORT=${BACKEND_PORT}
db:
image: mariadb
restart: always
command: ['--character-set-server=utf8', '--collation-server=utf8_unicode_ci']
environment:
MARIADB_DATABASE: "docker"
MARIADB_USER: "jsk-root"
MARIADB_PASSWORD: "uNAU7CjeXn3jaqg"
MARIADB_ROOT_PASSWORD: "Q8N69wQ2PrrAm4y"
nginx:
restart: always
build:
context: .
dockerfile: dockerfiles/nginx
ports:
- "80:80"
volumes:
- ./src/frontend/dist:/usr/share/nginx/html/frontend:ro
- ./src/backend/public:/usr/share/nginx/html/backend/public:ro
# - ./src/chainend/public:/usr/share/nginx/html/chainend:ro
links:
- backend
depends_on:
- backend
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/csqgitbelong/ai_nft.git
git@gitee.com:csqgitbelong/ai_nft.git
csqgitbelong
ai_nft
AI_NFT
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385