質問編集履歴
1
コードの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,6 +74,122 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
+
###ソースコード
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
version: "3"
|
82
|
+
|
83
|
+
volumes:
|
84
|
+
|
85
|
+
mysql_data:
|
86
|
+
|
87
|
+
vendor_bundle:
|
88
|
+
|
89
|
+
node_modules:
|
90
|
+
|
91
|
+
public_spree:
|
92
|
+
|
93
|
+
storage:
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
services:
|
98
|
+
|
99
|
+
mysql:
|
100
|
+
|
101
|
+
image: mysql:8.0
|
102
|
+
|
103
|
+
environment:
|
104
|
+
|
105
|
+
MYSQL_ROOT_PASSWORD: password
|
106
|
+
|
107
|
+
networks:
|
108
|
+
|
109
|
+
- default
|
110
|
+
|
111
|
+
ports:
|
112
|
+
|
113
|
+
- '33306:3306'
|
114
|
+
|
115
|
+
volumes:
|
116
|
+
|
117
|
+
- mysql_data:/var/lib/mysql
|
118
|
+
|
119
|
+
selenium_chrome:
|
120
|
+
|
121
|
+
image: selenium/standalone-chrome-debug
|
122
|
+
|
123
|
+
logging:
|
124
|
+
|
125
|
+
driver: none
|
126
|
+
|
127
|
+
potepanec:
|
128
|
+
|
129
|
+
build:
|
130
|
+
|
131
|
+
context: .
|
132
|
+
|
133
|
+
dockerfile: Dockerfile.dev
|
134
|
+
|
135
|
+
ports:
|
136
|
+
|
137
|
+
- '3000:3000'
|
138
|
+
|
139
|
+
environment:
|
140
|
+
|
141
|
+
MYSQL_USERNAME: root
|
142
|
+
|
143
|
+
MYSQL_PASSWORD: password
|
144
|
+
|
145
|
+
MYSQL_HOST: mysql
|
146
|
+
|
147
|
+
SELENIUM_DRIVER_URL: http://selenium_chrome:4444/wd/hub
|
148
|
+
|
149
|
+
depends_on:
|
150
|
+
|
151
|
+
- mysql
|
152
|
+
|
153
|
+
- selenium_chrome
|
154
|
+
|
155
|
+
volumes:
|
156
|
+
|
157
|
+
- .:/potepanec
|
158
|
+
|
159
|
+
# https://qiita.com/shotat/items/57d049793605ffc20135
|
160
|
+
|
161
|
+
- /potepanec/log
|
162
|
+
|
163
|
+
- /potepanec/tmp
|
164
|
+
|
165
|
+
- vendor_bundle:/potepanec/vendor/bundle
|
166
|
+
|
167
|
+
- node_modules:/potepanec/node_modules
|
168
|
+
|
169
|
+
- public_spree:/potepanec/public/spree
|
170
|
+
|
171
|
+
- storage:/potepanec/storage
|
172
|
+
|
173
|
+
mysql_data:
|
174
|
+
|
175
|
+
driver: local
|
176
|
+
|
177
|
+
vendor_bundle:
|
178
|
+
|
179
|
+
driver: local
|
180
|
+
|
181
|
+
tty: true
|
182
|
+
|
183
|
+
stdin_open: true
|
184
|
+
|
185
|
+
command: bundle exec rails server -b 0.0.0.0
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
```
|
190
|
+
|
191
|
+
|
192
|
+
|
77
193
|
### 試したこと
|
78
194
|
|
79
195
|
|