-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.4 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
version: '3.8'
services:
aical:
build:
context: .
dockerfile: Dockerfile
container_name: ai-calendar-assistant
ports:
- "3002:3002"
environment:
- NODE_ENV=production
- PORT=3002
env_file:
- .env
restart: unless-stopped
volumes:
# Create logs directory if it doesn't exist
- ./logs:/app/logs
# Create data directory for any persistent storage
- ./data:/app/data
# Optional: Mount source for development (comment out for production)
# - ./src:/app/src
networks:
- aical-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3002/telegram/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
depends_on:
- setup
labels:
- "com.docker.compose.service=ai-calendar-assistant"
- "com.docker.compose.version=${COMPOSE_VERSION:-latest}"
# Setup service to create necessary directories
setup:
image: alpine:latest
container_name: aical-setup
volumes:
- ./logs:/setup/logs
- ./data:/setup/data
command: >
sh -c "
mkdir -p /setup/logs /setup/data &&
chmod 755 /setup/logs /setup/data &&
echo 'Setup completed'
"
restart: "no"
networks:
aical-network:
driver: bridge
name: aical-network
volumes:
aical-logs:
driver: local
aical-data:
driver: local