質問編集履歴

5

最新に更新

2020/08/21 11:06

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -42,6 +42,8 @@
42
42
 
43
43
  environment:
44
44
 
45
+ - PGDATA=/var/lib/postgresql/data
46
+
45
47
  - POSTGRES_USER
46
48
 
47
49
  - POSTGRES_PASSWORD
@@ -51,6 +53,8 @@
51
53
  - POSTGRES_DB
52
54
 
53
55
  - DATABASE_HOST
56
+
57
+ - POSTGRES_INITDB_ARGS= --encoding=UTF-8
54
58
 
55
59
  volumes:
56
60
 
@@ -73,6 +77,8 @@
73
77
  POSTGRES_DB='DB名'
74
78
 
75
79
  DATABASE_HOST='IPアドレス'
80
+
81
+
76
82
 
77
83
  ```
78
84
 

4

typo

2020/08/21 11:05

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -62,7 +62,7 @@
62
62
 
63
63
  ```
64
64
 
65
- connectionStr='DB接続文字列'
65
+ ConnString='DB接続文字列'
66
66
 
67
67
  POSTGRES_USER='ユーザー名'
68
68
 

3

typo

2020/08/19 00:47

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  image: aspnetapp:Core
22
22
 
23
- container_name: postgres
23
+ container_name: app
24
24
 
25
25
  ports:
26
26
 

2

修正

2020/08/19 00:45

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -10,6 +10,36 @@
10
10
 
11
11
  ```
12
12
 
13
+ version: '3'
14
+
15
+ services:
16
+
17
+ Core:
18
+
19
+ build: ./
20
+
21
+ image: aspnetapp:Core
22
+
23
+ container_name: postgres
24
+
25
+ ports:
26
+
27
+ - 80:80
28
+
29
+ environment:
30
+
31
+ - ConnString
32
+
33
+ postgres:
34
+
35
+ container_name: my-postgres
36
+
37
+ image: postgres:11.5
38
+
39
+ ports:
40
+
41
+ - 5432:5432
42
+
13
43
  environment:
14
44
 
15
45
  - POSTGRES_USER
@@ -21,6 +51,10 @@
21
51
  - POSTGRES_DB
22
52
 
23
53
  - DATABASE_HOST
54
+
55
+ volumes:
56
+
57
+ - ./initDB:/docker-entrypoint-initdb.d
24
58
 
25
59
  ```
26
60
 

1

typo

2020/08/19 00:40

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  ```
30
30
 
31
- connstring='DB接続文字列'
31
+ connectionStr='DB接続文字列'
32
32
 
33
33
  POSTGRES_USER='ユーザー名'
34
34