Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created March 3, 2024 04:33
Show Gist options
  • Save axilaris/2d1c69b4ac186fdac7e36a529e8f5cd2 to your computer and use it in GitHub Desktop.
Save axilaris/2d1c69b4ac186fdac7e36a529e8f5cd2 to your computer and use it in GitHub Desktop.
% docker-compose up
[+] Running 5/5
✔ Container redis Created 0.0s
✔ Container frontend_container Created 0.0s
✔ Container backend_container Recreated 0.2s
✔ Container celery Recreated 0.2s
✔ Container docker-django-react-celery-redis-nginx-1 Recreated 0.1s
Attaching to backend_container, celery, nginx-1, frontend_container, redis
redis | 1:C 03 Mar 2024 04:32:09.877 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis | 1:C 03 Mar 2024 04:32:09.877 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=1, just started
redis | 1:C 03 Mar 2024 04:32:09.877 # 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 03 Mar 2024 04:32:09.877 * monotonic clock: POSIX clock_gettime
redis | 1:M 03 Mar 2024 04:32:09.878 * Running mode=standalone, port=6379.
redis | 1:M 03 Mar 2024 04:32:09.878 * Server initialized
redis | 1:M 03 Mar 2024 04:32:09.878 * Loading RDB produced by version 7.2.4
redis | 1:M 03 Mar 2024 04:32:09.878 * RDB age 60 seconds
redis | 1:M 03 Mar 2024 04:32:09.878 * RDB memory usage when created 1.06 Mb
redis | 1:M 03 Mar 2024 04:32:09.878 * Done loading RDB, keys loaded: 2, keys expired: 0.
redis | 1:M 03 Mar 2024 04:32:09.878 * DB loaded from disk: 0.000 seconds
redis | 1:M 03 Mar 2024 04:32:09.878 * Ready to accept connections tcp
frontend_container |
frontend_container | > [email protected] build
frontend_container | > react-scripts build
frontend_container |
backend_container | No changes detected
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 | 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 | No changes detected
backend_container |
backend_container | 0 static files copied to '/static', 165 unmodified.
backend_container | [2024-03-03 04:32:10 +0000] [10] [INFO] Starting gunicorn 20.1.0
backend_container | [2024-03-03 04:32:10 +0000] [10] [INFO] Listening at: http://0.0.0.0:8000 (10)
backend_container | [2024-03-03 04:32:10 +0000] [10] [INFO] Using worker: sync
backend_container | [2024-03-03 04:32:10 +0000] [11] [INFO] Booting worker with pid: 11
frontend_container | Creating an optimized production build...
celery | Operations to perform:
celery | Apply all migrations: admin, auth, contenttypes, sessions, user_api
celery | Running migrations:
celery | No migrations to apply.
celery |
celery | 165 static files copied to '/static'.
celery | [2024-03-03 04:32:11 +0000] [10] [INFO] Starting gunicorn 20.1.0
celery | [2024-03-03 04:32:11 +0000] [10] [INFO] Listening at: http://0.0.0.0:8000 (10)
celery | [2024-03-03 04:32:11 +0000] [10] [INFO] Using worker: sync
celery | [2024-03-03 04:32:11 +0000] [11] [INFO] Booting worker with pid: 11
frontend_container | Compiled successfully.
frontend_container |
frontend_container | File sizes after gzip:
frontend_container |
frontend_container | 69.19 kB build/static/js/main.c0645258.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
% 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: 9046dd90-f44d-4eba-9881-acc0fbc4278a>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment