質問編集履歴

5

誤字の修正

2021/05/04 05:41

投稿

sika
sika

スコア52

test CHANGED
File without changes
test CHANGED
@@ -158,11 +158,11 @@
158
158
 
159
159
  $ new_image % docker-compose run web django-admin startproject core .
160
160
 
161
- Creating network "free_comic_default" with the default driver
161
+ Creating network "new_image_default" with the default driver
162
162
 
163
163
  Creating db-container ... done
164
164
 
165
- Creating free_comic_web_run ... done
165
+ Creating new_image_web_run ... done
166
166
 
167
167
  $ new_image % docker-compose up
168
168
 

4

誤字の修正

2021/05/04 05:41

投稿

sika
sika

スコア52

test CHANGED
File without changes
test CHANGED
@@ -156,7 +156,7 @@
156
156
 
157
157
  ```bash
158
158
 
159
- $ free_comic % docker-compose run web django-admin startproject core .
159
+ $ new_image % docker-compose run web django-admin startproject core .
160
160
 
161
161
  Creating network "free_comic_default" with the default driver
162
162
 
@@ -164,7 +164,7 @@
164
164
 
165
165
  Creating free_comic_web_run ... done
166
166
 
167
- $ free_comic % docker-compose up
167
+ $ new_image % docker-compose up
168
168
 
169
169
  Docker Compose is now in the Docker CLI, try `docker compose up`
170
170
 

3

誤字の修正

2021/05/04 05:40

投稿

sika
sika

スコア52

test CHANGED
File without changes
test CHANGED
@@ -12,6 +12,10 @@
12
12
 
13
13
 
14
14
 
15
+ echo "setting.py設定変更"
16
+
17
+
18
+
15
19
  # 言語をjaに変更
16
20
 
17
21
  sed -i -e "s/LANGUAGE_CODE = 'en-us'/LANGUAGE_CODE = 'ja'/" ./core/settings.py

2

誤字の修正

2021/05/04 05:36

投稿

sika
sika

スコア52

test CHANGED
File without changes
test CHANGED
@@ -152,7 +152,25 @@
152
152
 
153
153
  ```bash
154
154
 
155
+ $ free_comic % docker-compose run web django-admin startproject core .
156
+
157
+ Creating network "free_comic_default" with the default driver
158
+
159
+ Creating db-container ... done
160
+
161
+ Creating free_comic_web_run ... done
162
+
163
+ $ free_comic % docker-compose up
164
+
165
+ Docker Compose is now in the Docker CLI, try `docker compose up`
166
+
167
+
168
+
169
+ db-container is up-to-date
170
+
171
+ Creating web-container ... done
172
+
155
- Attaching to web-container, db-container
173
+ Attaching to db-container, web-container
156
174
 
157
175
  db-container | [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
158
176
 
@@ -160,36 +178,10 @@
160
178
 
161
179
  db-container | [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
162
180
 
163
- db-container | [20] LOG: database system was shut down at 2021-05-04 04:27:09 UTC
181
+ db-container | [21] LOG: database system was shut down at 2021-05-04 05:29:44 UTC
164
182
 
165
183
  db-container | [1] LOG: database system is ready to accept connections
166
184
 
167
- db-container | [1] LOG: received smart shutdown request
168
-
169
- db-container | [1] LOG: background worker "logical replication launcher" (PID 26) exited with exit code 1
170
-
171
- db-container | [21] LOG: shutting down
172
-
173
- db-container | [1] LOG: database system is shut down
174
-
175
- db-container | [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
176
-
177
- db-container | [1] LOG: listening on IPv6 address "::", port 5432
178
-
179
- db-container | [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
180
-
181
- db-container | [20] LOG: database system was shut down at 2021-05-04 04:28:06 UTC
182
-
183
- db-container | [1] LOG: database system is ready to accept connections
184
-
185
- db-container | [1] LOG: received smart shutdown request
186
-
187
- db-container | [1] LOG: background worker "logical replication launcher" (PID 26) exited with exit code 1
188
-
189
- db-container | [21] LOG: shutting down
190
-
191
- db-container | [1] LOG: database system is shut down
192
-
193
185
  web-container | Watching for file changes with StatReloader
194
186
 
195
187
  web-container | Performing system checks...
@@ -204,7 +196,7 @@
204
196
 
205
197
  web-container | Run 'python manage.py migrate' to apply them.
206
198
 
207
- web-container | May 04, 2021 - 04:27:50
199
+ web-container | May 04, 2021 - 05:30:34
208
200
 
209
201
  web-container | Django version 3.2, using settings 'core.settings'
210
202
 
@@ -212,28 +204,6 @@
212
204
 
213
205
  web-container | Quit the server with CONTROL-C.
214
206
 
215
- web-container | Watching for file changes with StatReloader
216
-
217
- web-container | Performing system checks...
218
-
219
- web-container |
220
-
221
- web-container | System check identified no issues (0 silenced).
222
-
223
- web-container |
224
-
225
- web-container | You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
226
-
227
- web-container | Run 'python manage.py migrate' to apply them.
228
-
229
- web-container | May 04, 2021 - 05:21:12
230
-
231
- web-container | Django version 3.2, using settings 'core.settings'
232
-
233
- web-container | Starting development server at http://0.0.0.0:8000/
234
-
235
- web-container | Quit the server with CONTROL-C.
236
-
237
207
  ```
238
208
 
239
209
 

1

docer compose logの履歴を追記しました

2021/05/04 05:32

投稿

sika
sika

スコア52

test CHANGED
File without changes
test CHANGED
@@ -144,4 +144,100 @@
144
144
 
145
145
  ```
146
146
 
147
+
148
+
149
+
150
+
151
+ `docker compose log`は以下の通りです。
152
+
153
+ ```bash
154
+
155
+ Attaching to web-container, db-container
156
+
157
+ db-container | [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
158
+
159
+ db-container | [1] LOG: listening on IPv6 address "::", port 5432
160
+
161
+ db-container | [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
162
+
163
+ db-container | [20] LOG: database system was shut down at 2021-05-04 04:27:09 UTC
164
+
165
+ db-container | [1] LOG: database system is ready to accept connections
166
+
167
+ db-container | [1] LOG: received smart shutdown request
168
+
169
+ db-container | [1] LOG: background worker "logical replication launcher" (PID 26) exited with exit code 1
170
+
171
+ db-container | [21] LOG: shutting down
172
+
173
+ db-container | [1] LOG: database system is shut down
174
+
175
+ db-container | [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
176
+
177
+ db-container | [1] LOG: listening on IPv6 address "::", port 5432
178
+
179
+ db-container | [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
180
+
181
+ db-container | [20] LOG: database system was shut down at 2021-05-04 04:28:06 UTC
182
+
183
+ db-container | [1] LOG: database system is ready to accept connections
184
+
185
+ db-container | [1] LOG: received smart shutdown request
186
+
187
+ db-container | [1] LOG: background worker "logical replication launcher" (PID 26) exited with exit code 1
188
+
189
+ db-container | [21] LOG: shutting down
190
+
191
+ db-container | [1] LOG: database system is shut down
192
+
193
+ web-container | Watching for file changes with StatReloader
194
+
195
+ web-container | Performing system checks...
196
+
197
+ web-container |
198
+
199
+ web-container | System check identified no issues (0 silenced).
200
+
201
+ web-container |
202
+
203
+ web-container | You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
204
+
205
+ web-container | Run 'python manage.py migrate' to apply them.
206
+
207
+ web-container | May 04, 2021 - 04:27:50
208
+
209
+ web-container | Django version 3.2, using settings 'core.settings'
210
+
211
+ web-container | Starting development server at http://0.0.0.0:8000/
212
+
213
+ web-container | Quit the server with CONTROL-C.
214
+
215
+ web-container | Watching for file changes with StatReloader
216
+
217
+ web-container | Performing system checks...
218
+
219
+ web-container |
220
+
221
+ web-container | System check identified no issues (0 silenced).
222
+
223
+ web-container |
224
+
225
+ web-container | You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
226
+
227
+ web-container | Run 'python manage.py migrate' to apply them.
228
+
229
+ web-container | May 04, 2021 - 05:21:12
230
+
231
+ web-container | Django version 3.2, using settings 'core.settings'
232
+
233
+ web-container | Starting development server at http://0.0.0.0:8000/
234
+
235
+ web-container | Quit the server with CONTROL-C.
236
+
237
+ ```
238
+
239
+
240
+
241
+
242
+
147
243
  Dockerfileの記述の問題とは思うのですが、docker同様にシェルも初学者なので、自分自身もまだ深く理解できておらず、文面だけでは伝わりにくいとは思いますがお力添えして頂けると嬉しいです。