forked from stakwork/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
42 lines (39 loc) · 875 Bytes
/
docker-compose.dev.yml
File metadata and controls
42 lines (39 loc) · 875 Bytes
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
39
40
41
42
version: "3.8"
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: hive-postgres-dev
environment:
POSTGRES_DB: hive_db
POSTGRES_USER: hive_user
POSTGRES_PASSWORD: hive_password
volumes:
- postgres_data_dev:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hive_user -d hive_db"]
interval: 10s
timeout: 5s
retries: 5
# Hive Application (Development)
hive-app-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: hive-app-dev
env_file:
- .env.local
- .env
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
depends_on:
postgres:
condition: service_healthy
command: npm run dev
volumes:
postgres_data_dev: