-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (68 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
71 lines (68 loc) · 2 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
62
63
64
65
66
67
68
69
70
71
services:
atlantis:
image: strikead/atlantis:latest
container_name: atlantis
user: '1001:1001'
restart: unless-stopped
ports:
- '${PORT:-3000}:3000'
volumes:
# Persist diagram data - map to your preferred location
# Default: uses Docker named volume
# Custom: set ATLANTIS_DATA_DIR environment variable or edit this file
# Example: ./my-data:/app/data
- ${ATLANTIS_DATA_DIR:-atlantis_data}:/app/data
environment:
- NODE_ENV=production
# Set to 'true' to enable the external API
- ENABLE_API_ACCESS=${ENABLE_API_ACCESS:-false}
# Redis connection for caching (optional - uses in-memory if not set)
- REDIS_URL=${REDIS_URL:-redis://redis:6379}
# Database connection (optional - uses SQLite if not set)
- DATABASE_URL=${DATABASE_URL:-}
# AI Configuration (OpenAI or Google AI Studio keys)
- AI_API_KEY=${AI_API_KEY:-}
# Live sync transport (socket or polling)
- NEXT_PUBLIC_LIVE_SYNC_METHOD=${NEXT_PUBLIC_LIVE_SYNC_METHOD:-socket}
- NEXT_PUBLIC_LIVE_SYNC_POLL_INTERVAL_MS=${NEXT_PUBLIC_LIVE_SYNC_POLL_INTERVAL_MS:-5000}
networks:
- atlantis-network
depends_on:
redis:
condition: service_healthy
healthcheck:
test:
[
'CMD',
'node',
'-e',
"fetch('http://127.0.0.1:3000/').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
redis:
image: redis:7-alpine
container_name: atlantis-redis
restart: unless-stopped
ports:
- '6379:6379'
volumes:
- atlantis_redis_data:/data
command: redis-server --appendonly yes
networks:
- atlantis-network
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 3
networks:
atlantis-network:
driver: bridge
volumes:
atlantis_data:
driver: local
atlantis_redis_data:
driver: local