質問編集履歴
1
コードを追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
docker-compose.ymlでdepends_onを使わないで依存関係を
|
1
|
+
docker-compose.ymlでdepends_onを使わないで依存関係が生まれている理由を知りたい。
|
test
CHANGED
@@ -7,6 +7,72 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
以下のdocker-compose.ymlを読んでいて疑問に思った点があったので質問させてください。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
```docker-compose.yml
|
14
|
+
|
15
|
+
version: "3.8"
|
16
|
+
|
17
|
+
volumes:
|
18
|
+
|
19
|
+
db-store:
|
20
|
+
|
21
|
+
php-fpm-socket:
|
22
|
+
|
23
|
+
services:
|
24
|
+
|
25
|
+
app:
|
26
|
+
|
27
|
+
build: ./docker/php
|
28
|
+
|
29
|
+
volumes:
|
30
|
+
|
31
|
+
- php-fpm-socket:/var/run/php-fpm
|
32
|
+
|
33
|
+
- ../backend:/work/backend
|
34
|
+
|
35
|
+
- ./docker/php/bash/.bash_history:/root/.bash_history
|
36
|
+
|
37
|
+
- ./docker/php/bash/psysh:/root/.config/psysh
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
web:
|
42
|
+
|
43
|
+
build: ./docker/nginx
|
44
|
+
|
45
|
+
ports:
|
46
|
+
|
47
|
+
- 80:80
|
48
|
+
|
49
|
+
volumes:
|
50
|
+
|
51
|
+
- php-fpm-socket:/var/run/php-fpm
|
52
|
+
|
53
|
+
- ../backend:/work/backend
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
db:
|
58
|
+
|
59
|
+
build: ./docker/mysql
|
60
|
+
|
61
|
+
volumes:
|
62
|
+
|
63
|
+
- db-store:/var/lib/mysql
|
64
|
+
|
65
|
+
ports:
|
66
|
+
|
67
|
+
- 3306:3306
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
10
76
|
|
11
77
|
[docker-laravel/docker-compose.yml at master · ucan-lab/docker-laravel](https://github.com/ucan-lab/docker-laravel/blob/master/infrastructure/docker-compose.yml)
|
12
78
|
|