-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
65 lines (58 loc) · 1.58 KB
/
docker-compose.yml
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
version: "3"
services:
mongo:
container_name: mongo
image: mongo:latest
restart: always
ports:
- 127.0.0.1:${MONGODB_PORT:-27017}:${MONGODB_PORT:-27017}
volumes:
- ${MONGODB_PATH:-./mongodb}:/data/db
# TODO: add auth
chatgpt_telegram_bot:
container_name: chatgpt_telegram_bot
command: python3 bot/bot.py
restart: always
build:
context: "."
dockerfile: Dockerfile
depends_on:
- mongo
# - redis #payment
mongo_express:
container_name: mongo-express
image: mongo-express:latest
restart: always
ports:
- 127.0.0.1:${MONGO_EXPRESS_PORT:-8081}:${MONGO_EXPRESS_PORT:-8081}
environment:
- ME_CONFIG_MONGODB_SERVER=mongo
- ME_CONFIG_MONGODB_PORT=${MONGODB_PORT:-27017}
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
- ME_CONFIG_MONGODB_AUTH_DATABASE=chatgpt_telegram_bot
- ME_CONFIG_BASICAUTH_USERNAME=${MONGO_EXPRESS_USERNAME:-username}
- ME_CONFIG_BASICAUTH_PASSWORD=${MONGO_EXPRESS_PASSWORD:-password}
depends_on:
- mongo
flask_app: # Flask application for handling Stripe webhooks
container_name: flask_stripe_webhook
build:
context: "."
dockerfile: Dockerfile
ports:
- "5000:5000" # Map the internal port 5000 to the host
volumes:
- .:/code
command: flask run --host=0.0.0.0 --port=5000
environment:
FLASK_APP: flask/flask_app.py
FLASK_RUN_HOST: 0.0.0.0
depends_on:
- mongo
- redis
redis:
container_name: redis
image: redis:latest
restart: always
ports:
- "6379:6379"