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