forked from coleam00/remote-agentic-coding-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (58 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
61 lines (58 loc) · 1.49 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
# Use this for external databases (Supabase, Neon, etc.)
# Command: docker-compose --profile external-db up
app:
profiles: ["external-db"]
build: .
env_file: .env
ports:
- "${PORT:-3000}:3000"
volumes:
- ${WORKSPACE_PATH:-./workspace}:/workspace
restart: unless-stopped
dns:
- 8.8.8.8
- 8.8.4.4
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
# Use this for local Docker database
# Command: docker-compose --profile with-db up
app-with-db:
profiles: ["with-db"]
build: .
env_file: .env
environment:
# Override DATABASE_URL to use Docker service name
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/remote_coding_agent
ports:
- "${PORT:-3000}:3000"
volumes:
- ${WORKSPACE_PATH:-./workspace}:/workspace
restart: unless-stopped
dns:
- 8.8.8.8
- 8.8.4.4
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:18
profiles: ["with-db"]
environment:
POSTGRES_DB: remote_coding_agent
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- ./migrations:/docker-entrypoint-initdb.d
ports:
- "${POSTGRES_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: