forked from ChicoState/archenemy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
38 lines (38 loc) · 1006 Bytes
/
compose.yaml
File metadata and controls
38 lines (38 loc) · 1006 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
services:
database:
image: pgvector/pgvector:pg17
container_name: archenemy_postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: archenemy
ports:
- "5432:5432"
restart: unless-stopped
command: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d archenemy"]
interval: 5s
timeout: 5s
retries: 5
app:
build:
context: .
dockerfile: Dockerfile
container_name: archenemy_app
ports:
- "3000:3000"
depends_on:
database:
condition: service_healthy
environment:
# Override the database URL to connect to the container service instead of Neon
NEON_POSTGRES_URL: "postgresql://postgres:password@database:5432/archenemy?sslmode=disable"
develop:
watch:
- path: ./src
action: rebuild
- path: ./Cargo.toml
action: rebuild
- path: ./Cargo.lock
action: rebuild