-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.25 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
39
40
41
42
43
44
45
version: "3.8"
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: hive-postgres
environment:
POSTGRES_DB: hive_db
POSTGRES_USER: hive_user
POSTGRES_PASSWORD: hive_password
volumes:
- postgres_data:/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
hive-app:
build:
context: .
dockerfile: Dockerfile
container_name: hive-app
environment:
- DATABASE_URL=postgresql://hive_user:hive_password@postgres:5432/hive_db
- NEXTAUTH_URL=http://100.97.107.124:3000
- NEXTAUTH_SECRET=bywYKt/K8MWQbRZQpUeujcTCzGctEsS0G8kfy1kqyDs=
- JWT_SECRET=eb68e8048db53877963f8b4beb1fd55e72e1c6826777cd5a8694b28c21cd7f61f485bf3a6136293152584180f717fc840a10c27659ed1c14a29de07eb5e52148
- NODE_ENV=production
- GITHUB_CLIENT_ID=Ov23li5LywKlITZ6eSzJ
- GITHUB_CLIENT_SECRET=2ee2e8a84251ee787a8729369535f12f3f7ae7dd
- STAKWORK_API_KEY=placeholder
ports:
- "3000:3000"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
volumes:
postgres_data: