Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove fixed container name. Add rabbitmq volume #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions core.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: "3.4"
services:
mongodb:
image: mongo:4.4
volumes:
- botcoremongodata:/data/db
ports:
- "127.0.0.1:27017:27017"
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo 127.0.0.1:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 10s

rabbitmq:
image: rabbitmq:3-management-alpine
volumes:
- botcorerabbitdata:/data/db
ports:
- "127.0.0.1:5672:5672"
- "127.0.0.1:15672:15672"
healthcheck:
test: [ "CMD", "nc", "-z", "127.0.0.1", "5672" ]
interval: 10s
timeout: 10s
retries: 5

codex-bot-core:
image: codexteamuser/codex-bot-core:stage
command: python main.py
restart: on-failure
env_file:
- .env
depends_on:
mongodb:
condition: service_healthy
rabbitmq:
condition: service_healthy
ports:
- "127.0.0.1:1337:1337"

volumes:
botcoremongodata:
botcorerabbitdata:
6 changes: 4 additions & 2 deletions core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ services:

rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
volumes:
- botcorerabbitdata:/data/db
ports:
- "127.0.0.1:5672:5672"
- "127.0.0.1:15672:15672"
Expand All @@ -42,4 +43,5 @@ services:
- "127.0.0.1:1337:1337"

volumes:
botcoremongodata:
botcoremongodata:
botcorerabbitdata: