Skip to content

Commit f82b019

Browse files
committed
chore (development): added docker compose
1 parent 24bb3a9 commit f82b019

File tree

3 files changed

+33
-38
lines changed

3 files changed

+33
-38
lines changed

src/server/docker-compose.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This file defines how to run your application using Docker Compose.
2+
# It's a blueprint for a single service called 'sentient-app'.
3+
version: '3.8' # Specifies the version of the Docker Compose file format.
4+
5+
services: # This is a list of all services (containers) we want to run. We only have one.
6+
sentient-app: # This is the name we are giving our service.
7+
8+
# 'build' tells Docker Compose how to create the Docker image.
9+
build:
10+
# 'context: .' means "look for the Dockerfile in the current directory".
11+
# Since we'll run this from src/server, it finds it correctly.
12+
context: .
13+
dockerfile: Dockerfile
14+
15+
# 'container_name' gives a specific, predictable name to the running container.
16+
container_name: sentient-app
17+
18+
# 'restart: unless-stopped' is a safety measure. If the container crashes
19+
# or the EC2 server reboots, Docker will automatically restart it.
20+
restart: unless-stopped
21+
22+
# 'env_file' tells the container to load all its environment variables
23+
# from the specified file. We'll create '.env' in the next step.
24+
env_file:
25+
- ./.env
26+
27+
# 'ports' maps a port on the EC2 server (the host) to a port inside the container.
28+
# Format is "HOST_PORT:CONTAINER_PORT".
29+
# This exposes your main FastAPI application (running on port 5000 inside the container)
30+
# to the outside world through port 5000 on the EC2 instance.
31+
ports:
32+
- "5000:5000"

src/server/ping_waha.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/server/supervisord.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ stdout_logfile=/var/log/supervisor/mcp-slack.log
177177
stderr_logfile=/var/log/supervisor/mcp-slack_err.log
178178

179179
[program:healthcheck]
180-
command=python ping_waha.py
180+
command=python -m main.scripts.healthcheck
181181
directory=/app
182182
autostart=true
183183
autorestart=true

0 commit comments

Comments
 (0)