代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。