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