-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
services:
# PostgreSQLデータベース
database:
build:
context: .
dockerfile: docker/postgresql/Dockerfile
container_name: lazy_bear_database
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# Next.jsアプリケーション
app:
build:
context: .
dockerfile: docker/nextjs/Dockerfile.dev
container_name: lazy_bear_app
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@database:5432/${POSTGRES_DB}
- GOOGLE_CLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT}
- GOOGLE_CLOUD_LOCATION=${GOOGLE_CLOUD_LOCATION}
- VERTEX_AI_MODEL_NAME=${VERTEX_AI_MODEL_NAME}
volumes:
- ./app:/app
- /app/node_modules
- ${GOOGLE_CLOUD_CREDENTIAL_PATH}:/root/.config/gcloud:ro
depends_on:
- database
volumes:
postgres_data: