File tree Expand file tree Collapse file tree 5 files changed +1602
-0
lines changed Expand file tree Collapse file tree 5 files changed +1602
-0
lines changed Original file line number Diff line number Diff line change
1
+ .git
2
+ .gitignore
3
+ .gitattributes
4
+
5
+
6
+ # CI
7
+ .codeclimate.yml
8
+ .travis.yml
9
+ .taskcluster.yml
10
+
11
+ # Docker
12
+ docker-compose.yml
13
+ Dockerfile
14
+ .docker
15
+ .dockerignore
16
+
17
+ # Byte-compiled / optimized / DLL files
18
+ ** /__pycache__ /
19
+ ** /* .py [cod ]
20
+
21
+ # C extensions
22
+ * .so
23
+
24
+ # Distribution / packaging
25
+ .Python
26
+ env /
27
+ build /
28
+ develop-eggs /
29
+ dist /
30
+ downloads /
31
+ eggs /
32
+ lib /
33
+ lib64 /
34
+ parts /
35
+ sdist /
36
+ var /
37
+ * .egg-info /
38
+ .installed.cfg
39
+ * .egg
40
+
41
+ # PyInstaller
42
+ # Usually these files are written by a python script from a template
43
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
44
+ * .manifest
45
+ * .spec
46
+
47
+ # Installer logs
48
+ pip-log.txt
49
+ pip-delete-this-directory.txt
50
+
51
+ # Unit test / coverage reports
52
+ htmlcov /
53
+ .tox /
54
+ .coverage
55
+ .cache
56
+ nosetests.xml
57
+ coverage.xml
58
+
59
+ # Translations
60
+ * .mo
61
+ * .pot
62
+
63
+ # Django stuff:
64
+ * .log
65
+
66
+ # Sphinx documentation
67
+ docs /_build /
68
+
69
+ # PyBuilder
70
+ target /
71
+
72
+ # Virtual environment
73
+ .env
74
+ .venv /
75
+ venv /
76
+
77
+ # PyCharm
78
+ .idea
79
+
80
+ # Python mode for VIM
81
+ .ropeproject
82
+ ** /.ropeproject
83
+
84
+ # Vim swap files
85
+ ** /* .swp
86
+
87
+ # VS Code
88
+ .vscode /
Original file line number Diff line number Diff line change
1
+ FROM python:3.11-slim
2
+
3
+ RUN apt-get update
4
+ RUN apt-get install python3 python3-pip -y
5
+ RUN pip3 install --upgrade pip
6
+ WORKDIR /Chronogram
7
+
8
+ COPY ./requirements.txt /Chronogram/requirements.txt
9
+
10
+ RUN pip3 install -r requirements.txt
11
+
12
+ COPY . .
13
+
14
+ CMD python3 __main__.py
Original file line number Diff line number Diff line change
1
+ services :
2
+ db :
3
+ image : postgres
4
+ restart : unless-stopped
5
+ container_name : db
6
+ environment :
7
+ - POSTGRES_USER=${PG_LOGIN}
8
+ - POSTGRES_PASSWORD=${PG_PASS}
9
+ - POSTGRES_DB=${PG_DB_NAME}
10
+ ports :
11
+ - ' 5432:5432'
12
+ volumes :
13
+ - ./db:/var/lib/postgresql/data
14
+ api :
15
+ platform : linux/amd64
16
+ environment :
17
+ - TESTING=${TESTING}
18
+ - PROD_API_TOKEN=${PROD_API_TOKEN}
19
+ - TEST_API_TOKEN=${TEST_API_TOKEN}
20
+ - FERNET_KEY=${FERNET_KEY}
21
+ - ADMIN_IDS=${ADMIN_IDS}
22
+ - PG_LOGIN=${PG_LOGIN}
23
+ - PG_PASS=${PG_PASS}
24
+ - PG_DB_NAME=${PG_DB_NAME}
25
+ - PG_HOST=${PG_HOST}
26
+ - PG_PORT=${PG_PORT}
27
+ depends_on :
28
+ - db
29
+ build :
30
+ context : ./
31
+ dockerfile : ./Dockerfile
You can’t perform that action at this time.
0 commit comments