teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

タイトルの修正

2020/09/27 09:12

投稿

yamada_yuuki
yamada_yuuki

スコア100

title CHANGED
@@ -1,1 +1,1 @@
1
- dockerでlocalhostにアクセスできない
1
+ rails6とdockerでlocalhostにアクセスできない
body CHANGED
File without changes

1

情報の追加

2020/09/27 09:12

投稿

yamada_yuuki
yamada_yuuki

スコア100

title CHANGED
File without changes
body CHANGED
@@ -10,62 +10,17 @@
10
10
 
11
11
  ```
12
12
  docker-compose up
13
- Creating network "code-sell_default" with the default driver
14
- Creating myapp_db_1 ... done
13
+ Starting myapp_db_1 ... done
15
- Creating myapp_web_1 ... done
14
+ Starting myapp_web_1 ... done
16
- Attaching to code-sell_db_1, code-sell_web_1
15
+ Attaching to myapp_db_1, myapp_web_1
17
- db_1 | The files belonging to this database system will be owned by user "postgres".
18
- db_1 | This user must also own the server process.
19
16
  db_1 |
20
- db_1 | The database cluster will be initialized with locale "en_US.utf8".
21
- db_1 | The default database encoding has accordingly been set to "UTF8".
17
+ db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization
22
- db_1 | The default text search configuration will be set to "english".
23
18
  db_1 |
24
- db_1 | Data page checksums are disabled.
25
- db_1 |
26
- db_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
27
- db_1 | creating subdirectories ... ok
28
- db_1 | selecting dynamic shared memory implementation ... posix
29
- db_1 | selecting default max_connections ... 100
30
- db_1 | selecting default shared_buffers ... 128MB
31
- db_1 | selecting default time zone ... Etc/UTC
32
- db_1 | creating configuration files ... ok
33
- db_1 | running bootstrap script ... ok
34
- db_1 | performing post-bootstrap initialization ... ok
35
- db_1 | syncing data to disk ... ok
36
- db_1 |
37
- db_1 | initdb: warning: enabling "trust" authentication for local connections
38
- db_1 | You can change this by editing pg_hba.conf or using the option -A, or
39
- db_1 | --auth-local and --auth-host, the next time you run initdb.
40
- db_1 |
41
- db_1 | Success. You can now start the database server using:
42
- db_1 |
43
- db_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
44
- db_1 |
45
- db_1 | waiting for server to start....2020-09-27 08:47:20.369 UTC [45] LOG: starting PostgreSQL 13.0 (Debian 13.0-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
46
- db_1 | 2020-09-27 08:47:20.372 UTC [45] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
47
- db_1 | 2020-09-27 08:47:20.379 UTC [46] LOG: database system was shut down at 2020-09-27 08:47:19 UTC
48
- db_1 | 2020-09-27 08:47:20.382 UTC [45] LOG: database system is ready to accept connections
49
- db_1 | done
50
- db_1 | server started
51
- db_1 |
52
- db_1 | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
53
- db_1 |
54
- db_1 | 2020-09-27 08:47:20.457 UTC [45] LOG: received fast shutdown request
55
- db_1 | waiting for server to shut down....2020-09-27 08:47:20.458 UTC [45] LOG: aborting any
56
- active transactions
57
- db_1 | 2020-09-27 08:47:20.460 UTC [45] LOG: background worker "logical replication launcher" (PID 52) exited with exit code 1
58
- db_1 | 2020-09-27 08:47:20.461 UTC [47] LOG: shutting down
59
- db_1 | done
60
- db_1 | server stopped
61
- db_1 |
62
- db_1 | PostgreSQL init process complete; ready for start up.
63
- db_1 |
64
- db_1 | 2020-09-27 08:47:20.574 UTC [1] LOG: starting PostgreSQL 13.0 (Debian 13.0-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
65
- db_1 | 2020-09-27 08:47:20.575 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
66
- db_1 | 2020-09-27 08:47:20.575 UTC [1] LOG: listening on IPv6 address "::", port 5432
67
- db_1 | 2020-09-27 08:47:20.580 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
68
- db_1 | 2020-09-27 08:47:20.587 UTC [54] LOG: database system was shut down at 2020-09-27 08:47:20 UTC
19
+ db_1 | 2020-09-27 09:05:55.252 UTC [1] LOG: starting PostgreSQL 13.0 (Debian 13.0-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
20
+ db_1 | 2020-09-27 09:05:55.253 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
21
+ db_1 | 2020-09-27 09:05:55.254 UTC [1] LOG: listening on IPv6 address "::", port 5432
22
+ db_1 | 2020-09-27 09:05:55.260 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
23
+ db_1 | 2020-09-27 09:05:55.266 UTC [24] LOG: database system was shut down at 2020-09-27 09:05:46 UTC
69
24
  web_1 | => Booting Puma
70
25
  web_1 | => Rails 6.0.3.2 application starting in development
71
26
  web_1 | => Run `rails server --help` for more startup options