Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created March 13, 2024 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axilaris/a2776fc8f39e53bbc93e0d7a4e0ba0f5 to your computer and use it in GitHub Desktop.
Save axilaris/a2776fc8f39e53bbc93e0d7a4e0ba0f5 to your computer and use it in GitHub Desktop.
% docker exec -it backend_container sh
/app # python manage.py shell
Python 3.9.18 (main, Jan 27 2024, 07:18:02)
[GCC 13.2.1 20231014] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from user_api.tasks import add
>>> result = add.delay(2, 2)
>>> result.ready
<bound method AsyncResult.ready of <AsyncResult: b41fc919-a89f-4926-b5db-93391f0f733e>>
% docker-compose up
[+] Running 5/3
✔ Container frontend_container Created 0.1s
✔ Container backend_container Created 0.1s
✔ Container redis Created 0.1s
✔ Container celery Created 0.1s
✔ Container dockerize-django-react-celery-redis-nginx-1 Created 0.1s
Attaching to backend_container, celery, nginx-1, frontend_container, redis
redis | 1:C 13 Mar 2024 12:27:31.638 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis | 1:C 13 Mar 2024 12:27:31.638 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=1, just started
redis | 1:C 13 Mar 2024 12:27:31.638 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis | 1:M 13 Mar 2024 12:27:31.638 * monotonic clock: POSIX clock_gettime
redis | 1:M 13 Mar 2024 12:27:31.639 * Running mode=standalone, port=6379.
redis | 1:M 13 Mar 2024 12:27:31.639 * Server initialized
redis | 1:M 13 Mar 2024 12:27:31.640 * Ready to accept connections tcp
frontend_container |
frontend_container | > frontend@0.1.0 build
frontend_container | > react-scripts build
frontend_container |
nginx-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx-1 | 10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx-1 | 10-listen-on-ipv6-by-default.sh: /etc/nginx/conf.d/default.conf differs from the packages version, exiting
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
backend_container | No changes detected
celery | No changes detected
backend_container | Operations to perform:
backend_container | Apply all migrations: admin, auth, contenttypes, sessions, user_api
backend_container | Running migrations:
backend_container | No migrations to apply.
celery | Operations to perform:
celery | Apply all migrations: admin, auth, contenttypes, sessions, user_api
celery | Running migrations:
celery | No migrations to apply.
backend_container |
backend_container | 165 static files copied to '/static'.
frontend_container | Creating an optimized production build...
backend_container | [2024-03-13 12:27:32 +0000] [10] [INFO] Starting gunicorn 20.1.0
backend_container | [2024-03-13 12:27:32 +0000] [10] [INFO] Listening at: http://0.0.0.0:8000 (10)
backend_container | [2024-03-13 12:27:32 +0000] [10] [INFO] Using worker: sync
backend_container | [2024-03-13 12:27:32 +0000] [11] [INFO] Booting worker with pid: 11
celery |
celery | 165 static files copied to '/static'.
celery | [2024-03-13 12:27:32 +0000] [10] [INFO] Starting gunicorn 20.1.0
celery | [2024-03-13 12:27:32 +0000] [10] [INFO] Listening at: http://0.0.0.0:8000 (10)
celery | [2024-03-13 12:27:32 +0000] [10] [INFO] Using worker: sync
celery | [2024-03-13 12:27:32 +0000] [11] [INFO] Booting worker with pid: 11
frontend_container | One of your dependencies, babel-preset-react-app, is importing the
frontend_container | "@babel/plugin-proposal-private-property-in-object" package without
frontend_container | declaring it in its dependencies. This is currently working because
frontend_container | "@babel/plugin-proposal-private-property-in-object" is already in your
frontend_container | node_modules folder for unrelated reasons, but it may break at any time.
frontend_container |
frontend_container | babel-preset-react-app is part of the create-react-app project, which
frontend_container | is not maintianed anymore. It is thus unlikely that this bug will
frontend_container | ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
frontend_container | your devDependencies to work around this error. This will make this message
frontend_container | go away.
frontend_container |
frontend_container | Compiled successfully.
frontend_container |
frontend_container | File sizes after gzip:
frontend_container |
frontend_container | 69.8 kB (+18 B) build/static/js/main.d9f0908c.js
frontend_container | 31.91 kB build/static/css/main.9d7cbdf2.css
frontend_container |
frontend_container | The project was built assuming it is hosted at /.
frontend_container | You can control this with the homepage field in your package.json.
frontend_container |
frontend_container | The build folder is ready to be deployed.
frontend_container | You may serve it with a static server:
frontend_container |
frontend_container | npm install -g serve
frontend_container | serve -s build
frontend_container |
frontend_container | Find out more about deployment here:
frontend_container |
frontend_container | https://cra.link/deployment
frontend_container |
frontend_container exited with code 0
nginx-1 | 192.168.65.1 - - [13/Mar/2024:12:27:40 +0000] "GET / HTTP/1.1" 200 644 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
nginx-1 | 192.168.65.1 - - [13/Mar/2024:12:27:40 +0000] "GET /static/js/main.d9f0908c.js HTTP/1.1" 200 214595 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
nginx-1 | 192.168.65.1 - - [13/Mar/2024:12:27:40 +0000] "GET /static/css/main.9d7cbdf2.css HTTP/1.1" 200 235974 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
backend_container | Forbidden: /api/user
backend_container | WARNING:django.request:Forbidden: /api/user
nginx-1 | 192.168.65.1 - - [13/Mar/2024:12:27:41 +0000] "GET /favicon.ico HTTP/1.1" 200 0 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
nginx-1 | 192.168.65.1 - - [13/Mar/2024:12:27:41 +0000] "GET /manifest.json HTTP/1.1" 200 492 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
nginx-1 | 192.168.65.1 - - [13/Mar/2024:12:27:41 +0000] "GET /logo192.png HTTP/1.1" 200 644 "http://localhost/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36" "-"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment