Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xianyang
financial-system
Commits
e1ca584b
Commit
e1ca584b
authored
Mar 13, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新docker-conpose文件
parent
f46ba8b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
5 deletions
+36
-5
docker-compose.yaml
docker-compose.yaml
+36
-5
No files found.
docker-compose.yaml
View file @
e1ca584b
#version: "3"
#services:
# app:
# restart: always
# container_name: financial-system
# build: .
# ports:
# - "8001:8001"
# volumes:
# - /www/wwwroot/financial-system/:/financial-system/
# stdin_open: true
# command: python main.py
version
:
"
3"
services
:
app
:
financial-system
:
restart
:
always
container_name
:
financial-system
build
:
.
build
:
context
:
./../_base/python-38/
image
:
python-38
ports
:
-
"
8001:8001"
deploy
:
resources
:
limits
:
cpus
:
"
4.00"
memory
:
16G
reservations
:
memory
:
500M
volumes
:
-
/www/wwwroot/financial-system/:/financial-system/
-
/www/python-38/site-packages/financial-system/:/usr/local/lib/python3.8/site-packages
-
/www/wwwroot/financial-system/:/var/www/
logging
:
driver
:
json-file
options
:
max-size
:
"
20m"
max-file
:
"
10"
stdin_open
:
true
command
:
python main.py
\ No newline at end of file
command
:
>
sh -c "python -m ensurepip &&
python -m pip install --upgrade pip &&
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple &&
python main.py"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment