docker-compose.ymlに.envファイルを追加し、環境変数の設定を整理
This commit is contained in:
parent
874f1c2fd7
commit
d4753da136
@ -1,5 +1,7 @@
|
||||
services:
|
||||
app:
|
||||
env_file:
|
||||
- .env
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.production
|
||||
@ -9,11 +11,7 @@ services:
|
||||
- db
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
DB_NAME: ${DB_NAME}
|
||||
DB_USER: ${DB_USER}
|
||||
DB_PASS: ${DB_PASS}
|
||||
DB_HOST: db
|
||||
TZ: Asia/Tokyo
|
||||
volumes:
|
||||
- ./public/thumbnails:/app/public/thumbnails
|
||||
- ./logs/app:/app/logs
|
||||
|
Loading…
Reference in New Issue
Block a user