ubuntu@ip-172-31-34-53:~/docker/backend$ sudo docker-compose up
Creating network "backend_default" with the default driver
Pulling mysql (bitnami/mysql:5.7.38-debian-11-r9)...
5.7.38-debian-11-r9: Pulling from bitnami/mysql
f772582a4b9e: Pull complete
c748678409a3: Pull complete
b9b6b7f6cb7c: Pull complete
734a5712d194: Pull complete
1b81cdb82cc3: Pull complete
98f1127b0909: Pull complete
a5199fcc07fd: Pull complete
05f39e1b72c5: Pull complete
db3616d0af07: Pull complete
36398003e595: Pull complete
fe31d12ce05a: Pull complete
Digest: sha256:7abbc5ebfb48b58c09b97f43d8f454778e237a77310c196f7e1a06e13508d101
Status: Downloaded newer image for bitnami/mysql:5.7.38-debian-11-r9
Building backend
Sending build context to Docker daemon  198.7kB
Step 1/9 : FROM python:3.9
3.9: Pulling from library/python
d836772a1c1f: Pull complete
66a9e63c657a: Pull complete
d1989b6e74cf: Pull complete
c28818711e1e: Pull complete
5084fa7ebd74: Pull complete
7f162c881e4f: Pull complete
d5fddc3fc784: Pull complete
cdcb8ab52fb7: Pull complete
af15b1fc8655: Pull complete
Digest: sha256:8b3cd14deed57b0838a9067a4dfaae40a77185dfcb4576e1eb0ab4dfdd95aeb3
Status: Downloaded newer image for python:3.9
 ---> c27da15ba022
Step 2/9 : RUN mkdir /app
 ---> Running in cfc71b764d4e
Removing intermediate container cfc71b764d4e
 ---> 14dd59c5e54b
Step 3/9 : WORKDIR /app
 ---> Running in 588713bfcc90
Removing intermediate container 588713bfcc90
 ---> 148b73dd8dea
Step 4/9 : RUN apt update
 ---> Running in a8e0621ea07f

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 <http://deb.debian.org/debian> bullseye InRelease [116 kB]
Get:2 <http://deb.debian.org/debian-security> bullseye-security InRelease [44.1 kB]
Get:3 <http://deb.debian.org/debian> bullseye-updates InRelease [39.4 kB]
Get:4 <http://deb.debian.org/debian> bullseye/main amd64 Packages [8182 kB]
Get:5 <http://deb.debian.org/debian-security> bullseye-security/main amd64 Packages [164 kB]
Get:6 <http://deb.debian.org/debian> bullseye-updates/main amd64 Packages [2592 B]
Fetched 8548 kB in 2s (4079 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
Removing intermediate container a8e0621ea07f
 ---> eb9facedb4dc
Step 5/9 : RUN apt install uwsgi-plugin-python3 -y
 ---> Running in 1c92daa6234d

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libcap2 libjansson4 libnorm1 libpgm-5.3-0 libpython3.9 libsodium23 libzmq5
  uwsgi-core
Suggested packages:
  nginx-full | cherokee | libapache2-mod-proxy-uwsgi | libapache2-mod-uwsgi
  | libapache2-mod-ruwsgi uwsgi-dev uwsgi-extra uwsgi-plugins-all
  python3-uwsgidecorators
The following NEW packages will be installed:
  libcap2 libjansson4 libnorm1 libpgm-5.3-0 libpython3.9 libsodium23 libzmq5
  uwsgi-core uwsgi-plugin-python3
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 3248 kB of archives.
After this operation, 10.7 MB of additional disk space will be used.
Get:1 <http://deb.debian.org/debian> bullseye/main amd64 libcap2 amd64 1:2.44-1 [23.6 kB]
Get:2 <http://deb.debian.org/debian> bullseye/main amd64 libjansson4 amd64 2.13.1-1.1 [39.7 kB]
Get:3 <http://deb.debian.org/debian> bullseye/main amd64 libnorm1 amd64 1.5.9+dfsg-2 [221 kB]
Get:4 <http://deb.debian.org/debian> bullseye/main amd64 libpgm-5.3-0 amd64 5.3.128~dfsg-2 [161 kB]
Get:5 <http://deb.debian.org/debian> bullseye/main amd64 libpython3.9 amd64 3.9.2-1 [1691 kB]
Get:6 <http://deb.debian.org/debian> bullseye/main amd64 libsodium23 amd64 1.0.18-1 [161 kB]
Get:7 <http://deb.debian.org/debian> bullseye/main amd64 libzmq5 amd64 4.3.4-1 [275 kB]
Get:8 <http://deb.debian.org/debian> bullseye/main amd64 uwsgi-core amd64 2.0.19.1-7.1 [563 kB]
Get:9 <http://deb.debian.org/debian> bullseye/main amd64 uwsgi-plugin-python3 amd64 2.0.19.1-7.1 [113 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 3248 kB in 0s (52.2 MB/s)
Selecting previously unselected package libcap2:amd64.
(Reading database ... 23421 files and directories currently installed.)
Preparing to unpack .../0-libcap2_1%3a2.44-1_amd64.deb ...
Unpacking libcap2:amd64 (1:2.44-1) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../1-libjansson4_2.13.1-1.1_amd64.deb ...
Unpacking libjansson4:amd64 (2.13.1-1.1) ...
Selecting previously unselected package libnorm1:amd64.
Preparing to unpack .../2-libnorm1_1.5.9+dfsg-2_amd64.deb ...
Unpacking libnorm1:amd64 (1.5.9+dfsg-2) ...
Selecting previously unselected package libpgm-5.3-0:amd64.
Preparing to unpack .../3-libpgm-5.3-0_5.3.128~dfsg-2_amd64.deb ...
Unpacking libpgm-5.3-0:amd64 (5.3.128~dfsg-2) ...
Selecting previously unselected package libpython3.9:amd64.
Preparing to unpack .../4-libpython3.9_3.9.2-1_amd64.deb ...
Unpacking libpython3.9:amd64 (3.9.2-1) ...
Selecting previously unselected package libsodium23:amd64.
Preparing to unpack .../5-libsodium23_1.0.18-1_amd64.deb ...
Unpacking libsodium23:amd64 (1.0.18-1) ...
Selecting previously unselected package libzmq5:amd64.
Preparing to unpack .../6-libzmq5_4.3.4-1_amd64.deb ...
Unpacking libzmq5:amd64 (4.3.4-1) ...
Selecting previously unselected package uwsgi-core.
Preparing to unpack .../7-uwsgi-core_2.0.19.1-7.1_amd64.deb ...
Unpacking uwsgi-core (2.0.19.1-7.1) ...
Selecting previously unselected package uwsgi-plugin-python3.
Preparing to unpack .../8-uwsgi-plugin-python3_2.0.19.1-7.1_amd64.deb ...
Unpacking uwsgi-plugin-python3 (2.0.19.1-7.1) ...
Setting up libsodium23:amd64 (1.0.18-1) ...
Setting up libpgm-5.3-0:amd64 (5.3.128~dfsg-2) ...
Setting up libnorm1:amd64 (1.5.9+dfsg-2) ...
Setting up libcap2:amd64 (1:2.44-1) ...
Setting up libjansson4:amd64 (2.13.1-1.1) ...
Setting up libpython3.9:amd64 (3.9.2-1) ...
Setting up libzmq5:amd64 (4.3.4-1) ...
Setting up uwsgi-core (2.0.19.1-7.1) ...
Setting up uwsgi-plugin-python3 (2.0.19.1-7.1) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Removing intermediate container 1c92daa6234d
 ---> 7753452a13b1
Step 6/9 : COPY ./Pipfile /app/Pipfile
 ---> 177dc0c9cef0
Step 7/9 : COPY ./Pipfile.lock /app/Pipfile.lock
 ---> d93037847ca0
Step 8/9 : RUN pip install pipenv
 ---> Running in 0c07faa76b85
Collecting pipenv
  Downloading pipenv-2022.7.4-py2.py3-none-any.whl (3.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 37.1 MB/s eta 0:00:00
Collecting virtualenv
  Downloading virtualenv-20.15.1-py2.py3-none-any.whl (10.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 52.7 MB/s eta 0:00:00
Requirement already satisfied: setuptools>=36.2.1 in /usr/local/lib/python3.9/site-packages (from pipenv) (58.1.0)
Collecting virtualenv-clone>=0.2.5
  Downloading virtualenv_clone-0.5.7-py3-none-any.whl (6.6 kB)
Collecting certifi
  Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.2/160.2 KB 23.0 MB/s eta 0:00:00
Requirement already satisfied: pip>=22.0.4 in /usr/local/lib/python3.9/site-packages (from pipenv) (22.0.4)
Collecting filelock<4,>=3.2
  Downloading filelock-3.7.1-py3-none-any.whl (10 kB)
Collecting platformdirs<3,>=2
  Downloading platformdirs-2.5.2-py3-none-any.whl (14 kB)
Collecting six<2,>=1.9.0
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting distlib<1,>=0.3.1
  Downloading distlib-0.3.4-py2.py3-none-any.whl (461 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 461.2/461.2 KB 47.5 MB/s eta 0:00:00
Installing collected packages: distlib, virtualenv-clone, six, platformdirs, filelock, certifi, virtualenv, pipenv
Successfully installed certifi-2022.6.15 distlib-0.3.4 filelock-3.7.1 pipenv-2022.7.4 platformdirs-2.5.2 six-1.16.0 virtualenv-20.15.1 virtualenv-clone-0.5.7
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: <https://pip.pypa.io/warnings/venv>
WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Removing intermediate container 0c07faa76b85
 ---> 985262f9be3c
Step 9/9 : RUN pipenv install
 ---> Running in d044ed231612
Creating a virtualenv for this project...
Pipfile: /app/Pipfile
Using /usr/local/bin/python3.9 (3.9.13) to create virtualenv...
⠹ Creating virtual environment...created virtual environment CPython3.9.13.final.0-64 in 1587ms
  creator CPython3Posix(dest=/root/.local/share/virtualenvs/app-4PlAip0Q, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
    added seed packages: pip==22.1.2, setuptools==62.6.0, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /root/.local/share/virtualenvs/app-4PlAip0Q
Installing dependencies from Pipfile.lock (9bf8ea)...
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 33/33 — 00:01:05
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Removing intermediate container d044ed231612
 ---> e141742e4ad9
Successfully built e141742e4ad9
Successfully tagged backend_backend:latest
WARNING: Image for service backend was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Pulling nginx (nginx:)...
latest: Pulling from library/nginx
461246efe0a7: Pull complete
a96aaf9a9ec3: Pull complete
650d8b758441: Pull complete
b138da793ac8: Pull complete
bb1705539683: Pull complete
b9ed43dcc388: Pull complete
Digest: sha256:e5971d4b96d542ce87185de337ecae7967ea38f63371353c41216b46c6f3c77f
Status: Downloaded newer image for nginx:latest
Creating mysql ... done
Creating backend ... done
Creating nginx   ... done
Attaching to mysql, backend, nginx
mysql      | mysql 19:17:04.59
mysql      | mysql 19:17:04.60 Welcome to the Bitnami mysql container
mysql      | mysql 19:17:04.60 Subscribe to project updates by watching <https://github.com/bitnami/bitnami-docker-mysql>
mysql      | mysql 19:17:04.61 Submit issues and feature requests at <https://github.com/bitnami/bitnami-docker-mysql/issues>
mysql      | mysql 19:17:04.61
mysql      | mysql 19:17:04.62 INFO  ==> ** Starting MySQL setup **
mysql      | mysql 19:17:04.66 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mysql      | mysql 19:17:04.69 INFO  ==> Initializing mysql database
mysql      | mysql 19:17:04.72 INFO  ==> Updating 'my.cnf' with custom configuration
mysql      | mysql 19:17:04.73 INFO  ==> Setting user option
mysql      | mysql 19:17:04.77 INFO  ==> Setting slow_query_log option
mysql      | mysql 19:17:04.78 INFO  ==> Setting long_query_time option
mysql      | mysql 19:17:04.80 INFO  ==> Installing database
nginx      | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx      | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx      | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx      | 10-listen-on-ipv6-by-default.sh: info: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
nginx      | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx      | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx      | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx      | 2022/07/12 19:17:07 [notice] 1#1: using the "epoll" event method
nginx      | 2022/07/12 19:17:07 [notice] 1#1: nginx/1.23.0
nginx      | 2022/07/12 19:17:07 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
nginx      | 2022/07/12 19:17:07 [notice] 1#1: OS: Linux 5.15.0-1011-aws
nginx      | 2022/07/12 19:17:07 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx      | 2022/07/12 19:17:07 [notice] 1#1: start worker processes
nginx      | 2022/07/12 19:17:07 [notice] 1#1: start worker process 23
backend    | Loading .env environment variables...
backend    | Traceback (most recent call last):
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 259, in fetch_command
backend    |     app_name = commands[subcommand]
backend    | KeyError: 'collectstatic'
backend    |
backend    | During handling of the above exception, another exception occurred:
backend    |
backend    | Traceback (most recent call last):
backend    |   File "/app/manage.py", line 22, in <module>
backend    |     main()
backend    |   File "/app/manage.py", line 18, in main
backend    |     execute_from_command_line(sys.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
backend    |     utility.execute()
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
backend    |     self.fetch_command(subcommand).run_from_argv(self.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 266, in fetch_command
backend    |     settings.INSTALLED_APPS
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 87, in __getattr__
backend    |     self._setup(name)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 74, in _setup
backend    |     self._wrapped = Settings(settings_module)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 183, in __init__
backend    |     mod = importlib.import_module(self.SETTINGS_MODULE)
backend    |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
backend    |     return _bootstrap._gcd_import(name[level:], package, level)
backend    |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
backend    |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
backend    |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
backend    |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
backend    |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
backend    |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
backend    |   File "/app/config/settings.py", line 15, in <module>
backend    |     from .my_settings import SECRET_KEY
backend    | ModuleNotFoundError: No module named 'config.my_settings'
backend    | Loading .env environment variables...
backend    | Traceback (most recent call last):
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 259, in fetch_command
backend    |     app_name = commands[subcommand]
backend    | KeyError: 'collectstatic'
backend    |
backend    | During handling of the above exception, another exception occurred:
backend    |
backend    | Traceback (most recent call last):
backend    |   File "/app/manage.py", line 22, in <module>
backend    |     main()
backend    |   File "/app/manage.py", line 18, in main
backend    |     execute_from_command_line(sys.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
backend    |     utility.execute()
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
backend    |     self.fetch_command(subcommand).run_from_argv(self.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 266, in fetch_command
backend    |     settings.INSTALLED_APPS
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 87, in __getattr__
backend    |     self._setup(name)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 74, in _setup
backend    |     self._wrapped = Settings(settings_module)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 183, in __init__
backend    |     mod = importlib.import_module(self.SETTINGS_MODULE)
backend    |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
backend    |     return _bootstrap._gcd_import(name[level:], package, level)
backend    |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
backend    |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
backend    |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
backend    |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
backend    |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
backend    |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
backend    |   File "/app/config/settings.py", line 15, in <module>
backend    |     from .my_settings import SECRET_KEY
backend    | ModuleNotFoundError: No module named 'config.my_settings'
backend exited with code 1
mysql      | mysql 19:17:11.28 INFO  ==> Starting mysql in background
backend    | Loading .env environment variables...
backend    | Traceback (most recent call last):
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 259, in fetch_command
backend    |     app_name = commands[subcommand]
backend    | KeyError: 'collectstatic'
backend    |
backend    | During handling of the above exception, another exception occurred:
backend    |
backend    | Traceback (most recent call last):
backend    |   File "/app/manage.py", line 22, in <module>
backend    |     main()
backend    |   File "/app/manage.py", line 18, in main
backend    |     execute_from_command_line(sys.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
backend    |     utility.execute()
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
backend    |     self.fetch_command(subcommand).run_from_argv(self.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 266, in fetch_command
backend    |     settings.INSTALLED_APPS
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 87, in __getattr__
backend    |     self._setup(name)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 74, in _setup
backend    |     self._wrapped = Settings(settings_module)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 183, in __init__
backend    |     mod = importlib.import_module(self.SETTINGS_MODULE)
backend    |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
backend    |     return _bootstrap._gcd_import(name[level:], package, level)
backend    |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
backend    |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
backend    |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
backend    |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
backend    |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
backend    |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
backend    |   File "/app/config/settings.py", line 15, in <module>
backend    |     from .my_settings import SECRET_KEY
backend    | ModuleNotFoundError: No module named 'config.my_settings'
backend exited with code 1
mysql      | mysql 19:17:13.33 INFO  ==> Configuring authentication
mysql      | mysql: [Warning] Using a password on the command line interface can be insecure.
mysql      | mysql: [Warning] Using a password on the command line interface can be insecure.
mysql      | mysql 19:17:13.47 INFO  ==> Running mysql_upgrade
backend    | Loading .env environment variables...
backend    | Traceback (most recent call last):
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 259, in fetch_command
backend    |     app_name = commands[subcommand]
backend    | KeyError: 'collectstatic'
backend    |
backend    | During handling of the above exception, another exception occurred:
backend    |
backend    | Traceback (most recent call last):
backend    |   File "/app/manage.py", line 22, in <module>
backend    |     main()
backend    |   File "/app/manage.py", line 18, in main
backend    |     execute_from_command_line(sys.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
backend    |     utility.execute()
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
backend    |     self.fetch_command(subcommand).run_from_argv(self.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 266, in fetch_command
backend    |     settings.INSTALLED_APPS
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 87, in __getattr__
backend    |     self._setup(name)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 74, in _setup
backend    |     self._wrapped = Settings(settings_module)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 183, in __init__
backend    |     mod = importlib.import_module(self.SETTINGS_MODULE)
backend    |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
backend    |     return _bootstrap._gcd_import(name[level:], package, level)
backend    |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
backend    |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
backend    |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
backend    |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
backend    |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
backend    |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
backend    |   File "/app/config/settings.py", line 15, in <module>
backend    |     from .my_settings import SECRET_KEY
backend    | ModuleNotFoundError: No module named 'config.my_settings'
backend exited with code 1
mysql      | find: '/docker-entrypoint-startdb.d/': No such file or directory
mysql      | mysql 19:17:14.97 INFO  ==> Stopping mysql
backend    | Loading .env environment variables...
backend    | Traceback (most recent call last):
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 259, in fetch_command
backend    |     app_name = commands[subcommand]
backend    | KeyError: 'collectstatic'
backend    |
backend    | During handling of the above exception, another exception occurred:
backend    |
backend    | Traceback (most recent call last):
backend    |   File "/app/manage.py", line 22, in <module>
backend    |     main()
backend    |   File "/app/manage.py", line 18, in main
backend    |     execute_from_command_line(sys.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
backend    |     utility.execute()
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
backend    |     self.fetch_command(subcommand).run_from_argv(self.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 266, in fetch_command
backend    |     settings.INSTALLED_APPS
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 87, in __getattr__
backend    |     self._setup(name)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 74, in _setup
backend    |     self._wrapped = Settings(settings_module)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 183, in __init__
backend    |     mod = importlib.import_module(self.SETTINGS_MODULE)
backend    |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
backend    |     return _bootstrap._gcd_import(name[level:], package, level)
backend    |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
backend    |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
backend    |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
backend    |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
backend    |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
backend    |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
backend    |   File "/app/config/settings.py", line 15, in <module>
backend    |     from .my_settings import SECRET_KEY
backend    | ModuleNotFoundError: No module named 'config.my_settings'
mysql      | mysql 19:17:17.00 INFO  ==> ** MySQL setup finished! **
mysql      |
backend exited with code 1
mysql      | mysql 19:17:17.18 INFO  ==> ** Starting MySQL **
mysql      | 2022-07-12T19:17:17.406326Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
mysql      | 2022-07-12T19:17:17.406401Z 0 [Note] /opt/bitnami/mysql/bin/mysqld (mysqld 5.7.38) starting as process 1 ...
mysql      | 2022-07-12T19:17:17.412025Z 0 [Note] InnoDB: PUNCH HOLE support available
mysql      | 2022-07-12T19:17:17.412457Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mysql      | 2022-07-12T19:17:17.412915Z 0 [Note] InnoDB: Uses event mutexes
mysql      | 2022-07-12T19:17:17.413332Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
mysql      | 2022-07-12T19:17:17.413718Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
mysql      | 2022-07-12T19:17:17.414091Z 0 [Note] InnoDB: Using Linux native AIO
mysql      | 2022-07-12T19:17:17.414818Z 0 [Note] InnoDB: Number of pools: 1
mysql      | 2022-07-12T19:17:17.415373Z 0 [Note] InnoDB: Using CPU crc32 instructions
mysql      | 2022-07-12T19:17:17.417740Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
mysql      | 2022-07-12T19:17:17.427210Z 0 [Note] InnoDB: Completed initialization of buffer pool
mysql      | 2022-07-12T19:17:17.430242Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
mysql      | 2022-07-12T19:17:17.442020Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
mysql      | 2022-07-12T19:17:17.452171Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
mysql      | 2022-07-12T19:17:17.452705Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
mysql      | 2022-07-12T19:17:17.495646Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
mysql      | 2022-07-12T19:17:17.496970Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
mysql      | 2022-07-12T19:17:17.497369Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
mysql      | 2022-07-12T19:17:17.498134Z 0 [Note] InnoDB: Waiting for purge to start
mysql      | 2022-07-12T19:17:17.548716Z 0 [Note] InnoDB: 5.7.38 started; log sequence number 2849267
mysql      | 2022-07-12T19:17:17.549585Z 0 [Note] Plugin 'FEDERATED' is disabled.
mysql      | 2022-07-12T19:17:17.556580Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
mysql      | 2022-07-12T19:17:17.557160Z 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mysql/data/ib_buffer_pool
mysql      | 2022-07-12T19:17:17.559194Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220712 19:17:17
mysql      | 2022-07-12T19:17:17.559659Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
mysql      | 2022-07-12T19:17:17.560071Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
mysql      | 2022-07-12T19:17:17.560460Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
mysql      | 2022-07-12T19:17:17.561403Z 0 [Warning] CA certificate ca.pem is self signed.
mysql      | 2022-07-12T19:17:17.561807Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
mysql      | 2022-07-12T19:17:17.562370Z 0 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
mysql      | 2022-07-12T19:17:17.562809Z 0 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
mysql      | 2022-07-12T19:17:17.563237Z 0 [Note] Server socket created on IP: '0.0.0.0'.
mysql      | 2022-07-12T19:17:17.575057Z 0 [Note] Event Scheduler: Loaded 0 events
mysql      | 2022-07-12T19:17:17.575691Z 0 [Note] /opt/bitnami/mysql/bin/mysqld: ready for connections.
mysql      | Version: '5.7.38'  socket: '/opt/bitnami/mysql/tmp/mysql.sock'  port: 3306  MySQL Community Server (GPL)
backend    | Loading .env environment variables...
backend    | Traceback (most recent call last):
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 259, in fetch_command
backend    |     app_name = commands[subcommand]
backend    | KeyError: 'collectstatic'
backend    |
backend    | During handling of the above exception, another exception occurred:
backend    |
backend    | Traceback (most recent call last):
backend    |   File "/app/manage.py", line 22, in <module>
backend    |     main()
backend    |   File "/app/manage.py", line 18, in main
backend    |     execute_from_command_line(sys.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
backend    |     utility.execute()
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
backend    |     self.fetch_command(subcommand).run_from_argv(self.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 266, in fetch_command
backend    |     settings.INSTALLED_APPS
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 87, in __getattr__
backend    |     self._setup(name)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 74, in _setup
backend    |     self._wrapped = Settings(settings_module)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 183, in __init__
backend    |     mod = importlib.import_module(self.SETTINGS_MODULE)
backend    |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
backend    |     return _bootstrap._gcd_import(name[level:], package, level)
backend    |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
backend    |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
backend    |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
backend    |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
backend    |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
backend    |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
backend    |   File "/app/config/settings.py", line 15, in <module>
backend    |     from .my_settings import SECRET_KEY
backend    | ModuleNotFoundError: No module named 'config.my_settings'
backend exited with code 1
backend    | Loading .env environment variables...
backend    | Traceback (most recent call last):
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 259, in fetch_command
backend    |     app_name = commands[subcommand]
backend    | KeyError: 'collectstatic'
backend    |
backend    | During handling of the above exception, another exception occurred:
backend    |
backend    | Traceback (most recent call last):
backend    |   File "/app/manage.py", line 22, in <module>
backend    |     main()
backend    |   File "/app/manage.py", line 18, in main
backend    |     execute_from_command_line(sys.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
backend    |     utility.execute()
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
backend    |     self.fetch_command(subcommand).run_from_argv(self.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 266, in fetch_command
backend    |     settings.INSTALLED_APPS
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 87, in __getattr__
backend    |     self._setup(name)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 74, in _setup
backend    |     self._wrapped = Settings(settings_module)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 183, in __init__
backend    |     mod = importlib.import_module(self.SETTINGS_MODULE)
backend    |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
backend    |     return _bootstrap._gcd_import(name[level:], package, level)
backend    |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
backend    |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
backend    |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
backend    |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
backend    |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
backend    |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
backend    |   File "/app/config/settings.py", line 15, in <module>
backend    |     from .my_settings import SECRET_KEY
backend    | ModuleNotFoundError: No module named 'config.my_settings'
backend exited with code 1
backend    | Loading .env environment variables...
backend    | Traceback (most recent call last):
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 259, in fetch_command
backend    |     app_name = commands[subcommand]
backend    | KeyError: 'collectstatic'
backend    |
backend    | During handling of the above exception, another exception occurred:
backend    |
backend    | Traceback (most recent call last):
backend    |   File "/app/manage.py", line 22, in <module>
backend    |     main()
backend    |   File "/app/manage.py", line 18, in main
backend    |     execute_from_command_line(sys.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 446, in execute_from_command_line
backend    |     utility.execute()
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 440, in execute
backend    |     self.fetch_command(subcommand).run_from_argv(self.argv)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/core/management/__init__.py", line 266, in fetch_command
backend    |     settings.INSTALLED_APPS
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 87, in __getattr__
backend    |     self._setup(name)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 74, in _setup
backend    |     self._wrapped = Settings(settings_module)
backend    |   File "/root/.local/share/virtualenvs/app-4PlAip0Q/lib/python3.9/site-packages/django/conf/__init__.py", line 183, in __init__
backend    |     mod = importlib.import_module(self.SETTINGS_MODULE)
backend    |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
backend    |     return _bootstrap._gcd_import(name[level:], package, level)
backend    |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
backend    |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
backend    |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
backend    |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
backend    |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
backend    |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
backend    |   File "/app/config/settings.py", line 15, in <module>
backend    |     from .my_settings import SECRET_KEY
backend    | ModuleNotFoundError: No module named 'config.my_settings'
backend exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping nginx   ... done
Stopping backend ... done
Stopping mysql   ... done

docker-compose 파일 실행

mysql 이미지 다운

mysql 이미지 다운 완료

backend 서비스 빌딩

python 이미지 다운

python 이미지 다운 완료

app 디렉토리 생성

app 디렉토리를 work 디렉토리 설정

apt 업데이트

경고!! : apt에는 안정적인 CLI 인터페이스가 없습니다. 스크립트에서 주의해서 사용하십시오.

apt 업데이트 완료

uwsgi 플러그인 설치

경고!! : apt에는 안정적인 CLI 인터페이스가 없습니다. 스크립트에서 주의해서 사용하십시오.

debconf: apt-utils가 설치되지 않았기 때문에 패키지 구성 지연

uwsgi 플러그인 설치 완료

pipfile, pipfile.lock 파일 복사

pipenv 설치

**경고: '루트' 사용자로 pip를 실행하면 권한이 손상되고 시스템 패키지 관리자와 충돌하는 동작이 발생할 수 있습니다. 대신 가상 환경을 사용하는 것이 좋습니다. https://pip.pypa.io/warnings/venv**

경고: pip 버전 22.0.4를 사용하고 있습니다. 그러나 버전 22.1.2를 사용할 수 있습니다.

pipenv 가상환경 구성 /의존성 패키지 설치

pipfile을 통한 가상환경 생성 완료

pipfile.lock 의존성 패키지 다운 성공

Untitled

성공인데 빨간색으로 뜨니 뭔가 무섭네 ,,

Untitled