Skip to content

Commit faad372

Browse files
author
TIALab Admin
committed
first commit
0 parents  commit faad372

File tree

15,514 files changed

+2255508
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

15,514 files changed

+2255508
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.env
2+
mysql/

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# pathcomp
2+
# pathcomp

docker-compose.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: '3.3'
2+
3+
services:
4+
5+
web:
6+
build: ./tango2
7+
restart: always
8+
ports:
9+
#- "20.0.0.11:8080:5000"
10+
- "20.0.0.6:8080:5000"
11+
volumes:
12+
- ./tango2:/app
13+
# networks:
14+
# - frontend
15+
environment:
16+
MYSQL_ENGINE: "${DB_ENGINE}"
17+
MYSQL_HOST: "${DB_HOST}"
18+
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
19+
MYSQL_DATABASE: "${DB_NAME}"
20+
MYSQL_USER: "${DB_USERNAME}"
21+
MYSQL_PASSWORD: "${DB_PASSWORD}"
22+
MYSQL_PORT: "${DB_PORT}"
23+
depends_on:
24+
- db
25+
26+
db:
27+
image: mysql:5.7
28+
restart: always
29+
ports:
30+
- "3306:3306"
31+
volumes:
32+
- ./mysql/data:/var/lib/mysql
33+
# networks:
34+
# - backend
35+
environment:
36+
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
37+
MYSQL_DATABASE: "${DB_NAME}"
38+
MYSQL_USER: "${DB_USERNAME}"
39+
MYSQL_PASSWORD: "${DB_PASSWORD}"
40+
41+
# networks:
42+
# frontend:
43+
# backend:

nginx/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM nginx:latest
2+
3+
ADD nginx.conf /etc/nginx/nginx.conf
4+
5+
RUN mkdir -p /var/www/media
6+
RUN mkdir -p /var/www/static
7+
8+
WORKDIR /var/www/media
9+
RUN chown -R nginx:nginx /var/www/media
10+
11+
WORKDIR /var/www/static
12+
RUN chown -R nginx:nginx /var/www/static

nginx/nginx.conf

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
user nginx;
2+
3+
worker_processes 1;
4+
5+
events {
6+
worker_connections 1024;
7+
}
8+
9+
http {
10+
include /etc/nginx/mime.types;
11+
client_max_body_size 100M;
12+
13+
server {
14+
listen 80;
15+
charset utf-8;
16+
server_name myserver1.org;
17+
18+
access_log /dev/stdout;
19+
error_log /dev/stdout info;
20+
21+
location /media/ {
22+
alias /var/www/media/;
23+
}
24+
25+
location /static/ {
26+
alias /var/www/static/;
27+
}
28+
29+
location / {
30+
proxy_pass http://web:8000; #The name or ip of the django container
31+
proxy_set_header Host $host;
32+
proxy_set_header X-Real-IP $remote_addr;
33+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
34+
proxy_set_header X-Forwarded-Host $server_name;
35+
}
36+
}
37+
}

tango2/.DS_Store

10 KB
Binary file not shown.

tango2/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Use the Python3.7.2 image
2+
FROM python:3.7.2-stretch
3+
4+
# Set the working directory to /app
5+
WORKDIR /app
6+
7+
# Set environment variables
8+
ENV PYTHONDONTWRITEBYTECODE 1
9+
ENV PYTHONUNBUFFERED 1
10+
11+
# Copy the current directory contents into the container at /app
12+
#ADD . /app
13+
COPY requirements.txt /app
14+
15+
# Install the dependencies
16+
RUN pip install -r requirements.txt
17+
18+
# run the command to start uWSGI
19+
CMD ["python", "manage.py", "runserver", "0.0.0.0:5000"]

tango2/Dockerfile.live

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Use the Python3.7.2 image
2+
FROM python:3.7.2-stretch
3+
4+
ENV PYTHONBUFFERED=1
5+
ENV WEBAPP_DIR=/annogate
6+
7+
RUN mkdir -p /var/log/gunicorn
8+
RUN mkdir $WEBAPP_DIR
9+
10+
WORKDIR $WEBAPP_DIR
11+
12+
ADD requirements.txt $WEBAPP_DIR/
13+
RUN pip install -r requirements.txt
14+
15+
ADD . $WEBAPP_DIR
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "4Emily4",
3+
"dots": [
4+
{
5+
"x": 140.171875,
6+
"y": 243,
7+
"type": "1"
8+
},
9+
{
10+
"x": 378.171875,
11+
"y": 207,
12+
"type": "1"
13+
},
14+
{
15+
"x": 343.171875,
16+
"y": 229,
17+
"type": "1"
18+
}
19+
],
20+
"ip": "20.0.0.6",
21+
"serverUTCDate": "2020-11-04T12:46:17.611460",
22+
"clientDate": "",
23+
"userAgent": {
24+
"browser": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15",
25+
"version": null,
26+
"language": "C.UTF-8"
27+
}
28+
}
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
{
2+
"name": "4Emily4",
3+
"dots": [
4+
{
5+
"x": 197.671875,
6+
"y": 303,
7+
"type": "1"
8+
},
9+
{
10+
"x": 218.671875,
11+
"y": 258,
12+
"type": "1"
13+
},
14+
{
15+
"x": 231.671875,
16+
"y": 249,
17+
"type": "1"
18+
},
19+
{
20+
"x": 284.671875,
21+
"y": 257,
22+
"type": "1"
23+
},
24+
{
25+
"x": 321.671875,
26+
"y": 275,
27+
"type": "1"
28+
},
29+
{
30+
"x": 340.671875,
31+
"y": 319,
32+
"type": "1"
33+
},
34+
{
35+
"x": 401.671875,
36+
"y": 352,
37+
"type": "1"
38+
},
39+
{
40+
"x": 424.671875,
41+
"y": 360,
42+
"type": "1"
43+
},
44+
{
45+
"x": 13.671875,
46+
"y": 72,
47+
"type": "1"
48+
},
49+
{
50+
"x": 64.671875,
51+
"y": 46,
52+
"type": "1"
53+
},
54+
{
55+
"x": 151.671875,
56+
"y": 38,
57+
"type": "1"
58+
},
59+
{
60+
"x": 16.671875,
61+
"y": 160,
62+
"type": "1"
63+
},
64+
{
65+
"x": 394.671875,
66+
"y": 106,
67+
"type": "1"
68+
},
69+
{
70+
"x": 379.671875,
71+
"y": 65,
72+
"type": "1"
73+
},
74+
{
75+
"x": 403.671875,
76+
"y": 139,
77+
"type": "1"
78+
},
79+
{
80+
"x": 226.671875,
81+
"y": 187,
82+
"type": "1"
83+
},
84+
{
85+
"x": 177.671875,
86+
"y": 150,
87+
"type": "1"
88+
},
89+
{
90+
"x": 148.671875,
91+
"y": 147,
92+
"type": "1"
93+
},
94+
{
95+
"x": 190.671875,
96+
"y": 128,
97+
"type": "1"
98+
},
99+
{
100+
"x": 498.671875,
101+
"y": 332,
102+
"type": "1"
103+
},
104+
{
105+
"x": 80.671875,
106+
"y": 345,
107+
"type": "1"
108+
},
109+
{
110+
"x": 91.671875,
111+
"y": 235,
112+
"type": "1"
113+
},
114+
{
115+
"x": 85.671875,
116+
"y": 185,
117+
"type": "1"
118+
},
119+
{
120+
"x": 81.671875,
121+
"y": 461,
122+
"type": "1"
123+
}
124+
],
125+
"ip": "20.0.0.6",
126+
"serverUTCDate": "2020-11-04T12:46:03.245445",
127+
"clientDate": "",
128+
"userAgent": {
129+
"browser": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15",
130+
"version": null,
131+
"language": "C.UTF-8"
132+
}
133+
}

0 commit comments

Comments
 (0)