docker-composeの設定を更新し、dbサービスの再起動ポリシーを「always」に変更。開発環境の再起動ポリシーを「no」に設定。
This commit is contained in:
parent
72031bba37
commit
e4b9e6d18b
@ -9,9 +9,11 @@ services:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
NODE_ENV: development
|
||||
restart: no
|
||||
db:
|
||||
volumes:
|
||||
- db-store:/var/lib/mysql
|
||||
restart: no
|
||||
|
||||
volumes:
|
||||
db-store:
|
@ -17,6 +17,7 @@ services:
|
||||
volumes:
|
||||
- ./public/thumbnails:/app/public/thumbnails
|
||||
- ./logs/app:/app/logs
|
||||
restart: always
|
||||
db:
|
||||
image: mysql:8.0
|
||||
volumes:
|
||||
@ -31,6 +32,7 @@ services:
|
||||
TZ: ${TZ}
|
||||
ports:
|
||||
- ${DB_PORT}:3306
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
db-store-prodcution:
|
||||
|
Loading…
Reference in New Issue
Block a user