-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
135 lines (129 loc) · 2.97 KB
/
docker-compose.yml
File metadata and controls
135 lines (129 loc) · 2.97 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: "3.8"
networks:
taskinity-network:
driver: bridge
services:
# Mail Server for Testing (MailHog)
mailserver:
image: mailhog/mailhog:latest
container_name: mailhog
ports:
- "1025:1025" # SMTP server
- "8025:8025" # Web UI
restart: unless-stopped
networks:
- taskinity-network
# Taskinity DSL Service
taskinity-dsl:
build:
context: ..
dockerfile: examples/Dockerfile
container_name: taskinity-dsl
volumes:
- ./shared:/app/shared
- ./logs:/app/logs
- ./output:/app/output
- ./config:/app/config
- ./test_emails:/app/test_emails
environment:
- PYTHONPATH=/app
- LOG_LEVEL=INFO
- OUTPUT_DIR=/app/output
- EMAIL_SERVER=mailserver
- EMAIL_PORT=1025
- EMAIL_USER=test@example.com
- EMAIL_PASSWORD=testpass
env_file:
- ./email-invoices/.env
- ./web-invoices/.env
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
ports:
- "8000:8000"
command:
[
"python",
"-m",
"taskinity.cli",
"--config",
"/app/config/email_invoices.yaml",
]
depends_on:
- mailserver
networks:
- taskinity-network
# Email Invoice Processor Service
email-processor:
build:
context: ..
dockerfile: examples/Dockerfile
container_name: email-invoice-processor
volumes:
- ./shared:/app/shared
- ./logs/email:/app/logs
- ./output/email:/app/output
- ./test_emails:/app/test_emails
environment:
- PYTHONPATH=/app
- CONFIG_FILE=/app/config/email_invoices.yaml
- LOG_LEVEL=DEBUG
- OUTPUT_DIR=/app/output
- EMAIL_SERVER=mailserver
- EMAIL_PORT=1025
- EMAIL_USER=test@example.com
- EMAIL_PASSWORD=testpass
env_file:
- ./email-invoices/.env
restart: unless-stopped
depends_on:
- mailserver
networks:
- taskinity-network
command:
[
"python",
"-m",
"taskinity.runner",
"--config",
"/app/config/email_invoices.yaml",
]
# Web Invoice Processor Service
web-processor:
build:
context: ..
dockerfile: examples/Dockerfile
container_name: web-invoice-processor
volumes:
- ./shared:/app/shared
- ./logs/web:/app/logs
- ./output/web:/app/output
- ./config:/app/config
environment:
- PYTHONPATH=/app
- CONFIG_FILE=/app/config/web_invoices.yaml
- LOG_LEVEL=INFO
- OUTPUT_DIR=/app/output
env_file:
- ./web-invoices/.env
restart: unless-stopped
depends_on:
- taskinity-dsl
command:
[
"python",
"-m",
"taskinity.runner",
"--config",
"/app/config/web_invoices.yaml",
]
# Volumes for persistent storage
volumes:
shared:
logs:
output:
config: