This repository has been archived by the owner on Jul 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add docker compose infra for local mongo, refactor command disabled c…
…hecking (#41) * fix: fixed more permission validation issues * feat: added mongo+bot docker compose --------- Co-authored-by: zleyyij <[email protected]>
- Loading branch information
Showing
5 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# https://docs.docker.com/compose/networking/ | ||
version: "3.8" | ||
services: | ||
# the dockerfile to build turingbot is located at ../ | ||
turingbot: | ||
container_name: turingbot | ||
build: ../ | ||
# mount the config and secrets | ||
volumes: | ||
- type: bind | ||
source: ../config.jsonc | ||
target: /usr/src/turingbot/config.jsonc | ||
- type: bind | ||
source: ../secrets.jsonc | ||
target: /usr/src/turingbot/secrets.jsonc | ||
|
||
restart: unless-stopped | ||
depends_on: | ||
- mongo | ||
# at some point, i would like to have it be possible for mongodb to be routed in a way that it's accessible when the bot is not running in the docker container, maybe a port fwd | ||
mongo: | ||
container_name: mongo | ||
image: mongo | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
- mongo:/data/db | ||
environment: | ||
# change these in production | ||
- MONGO_INITDB_ROOT_PASSWORD=root | ||
- MONGO_INITDB_ROOT_USERNAME=root | ||
volumes: | ||
mongo: |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters