-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker for local development #7
Comments
I've tried to implement this. Here is the branch with the code. Here is error I get when running the containers. Attaching to timeenjoyed-abode_db, timeenjoyed-abode_web
timeenjoyed-abode_db |
timeenjoyed-abode_db | PostgreSQL Database directory appears to contain a database; Skipping initialization
timeenjoyed-abode_db |
timeenjoyed-abode_db | 2023-03-04 23:51:11.549 UTC [1] LOG: starting PostgreSQL 15.2 (Debian 15.2-1.pgdg110+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
timeenjoyed-abode_db | 2023-03-04 23:51:11.553 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
timeenjoyed-abode_db | 2023-03-04 23:51:11.553 UTC [1] LOG: listening on IPv6 address "::", port 5432
timeenjoyed-abode_db | 2023-03-04 23:51:11.556 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
timeenjoyed-abode_db | 2023-03-04 23:51:11.576 UTC [66] LOG: database system was shut down at 2023-03-04 09:37:07 UTC
timeenjoyed-abode_db | 2023-03-04 23:51:11.600 UTC [1] LOG: database system is ready to accept connections
timeenjoyed-abode_web | (0.054)
timeenjoyed-abode_web | SELECT
timeenjoyed-abode_web | c.relname,
timeenjoyed-abode_web | CASE
timeenjoyed-abode_web | WHEN c.relispartition THEN 'p'
timeenjoyed-abode_web | WHEN c.relkind IN ('m', 'v') THEN 'v'
timeenjoyed-abode_web | ELSE 't'
timeenjoyed-abode_web | END
timeenjoyed-abode_web | FROM pg_catalog.pg_class c
timeenjoyed-abode_web | LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
timeenjoyed-abode_web | WHERE c.relkind IN ('f', 'm', 'p', 'r', 'v')
timeenjoyed-abode_web | AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
timeenjoyed-abode_web | AND pg_catalog.pg_table_is_visible(c.oid)
timeenjoyed-abode_web | ; args=None; alias=default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current README is really good but users of this repository may have difficulty running the
runserver
command since the database isn't set up!They would need to set up a database, but I propose we use
docker
/docker-compose
to set up the django app as well as the PostgreSQL database.The text was updated successfully, but these errors were encountered: