This repository was archived by the owner on Aug 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Dockerized Services #26
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
885ad49
Dockerizing essential services
bcongdon 3a53f71
Dockerize all services
bcongdon 22fadff
Dockerized groot-api-gateway
bcongdon ac2c7e1
MySQL config updates
bcongdon 6d3e097
Add gigs service
bcongdon 6bdc9e8
Fix gigs db name
bcongdon 4ffbf8f
Add client key database for groot-api-gateway
bcongdon 7cf9af5
Fix group service build
bcongdon fbed530
Docker-compose / volume fixes for arborized groot
bcongdon d12e14b
Fix references to groot
bcongdon 5f7057d
Fix volume path
bcongdon 5550bcb
Update docker_settings_init.sh for dockerized services
bcongdon 2a6443f
Docker command notes
bcongdon 3406ab2
Add gigs settings to setup script
bcongdon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| CREATE DATABASE IF NOT EXISTS groot_caffeine_service_dev; | ||
| CREATE DATABASE IF NOT EXISTS groot_credits_service; | ||
| CREATE DATABASE IF NOT EXISTS groot_gigs_service; | ||
| CREATE DATABASE IF NOT EXISTS groot_meme_service; | ||
| CREATE DATABASE IF NOT EXISTS groot_merch_service_dev; | ||
| CREATE DATABASE IF NOT EXISTS groot_quote_service_dev; | ||
| CREATE DATABASE IF NOT EXISTS groot_recruiter_service_dev; | ||
| CREATE DATABASE IF NOT EXISTS groot_user_service_dev; | ||
| CREATE DATABASE IF NOT EXISTS groot_user_service_dev; | ||
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'; | ||
| FLUSH PRIVILEGES; | ||
This file contains hidden or 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,21 @@ | ||
| version: '2' | ||
| services: | ||
| db: | ||
| image: mysql | ||
| environment: | ||
| - MYSQL_ROOT_PASSWORD=root | ||
| volumes: | ||
| - ./database_setup.sql:/docker-entrypoint-initdb.d/schema.sql:ro | ||
| ports: | ||
| - 3306 | ||
| groot: | ||
| build: . | ||
| command: /bin/bash -c "./docker_go_symlink.sh && ./dev_spinup.sh" | ||
| working_dir: /groot-deploy | ||
| volumes: | ||
| - .:/groot-deploy | ||
| ports: | ||
| - "8000:8000" | ||
| - "5000:5000" | ||
| depends_on: | ||
| - db |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,21 +1,121 @@ | ||
| version: '2' | ||
| services: | ||
| db: | ||
| db: | ||
| image: mysql | ||
| environment: | ||
| - MYSQL_ROOT_PASSWORD=root | ||
| volumes: | ||
| - ./database_setup.sql:/docker-entrypoint-initdb.d/schema.sql:ro | ||
| - db_data:/var/lib/mysql | ||
| ports: | ||
| - 3306 | ||
| groot: | ||
| build: . | ||
| command: /bin/bash -c "./docker_go_symlink.sh && ./dev_spinup.sh" | ||
| working_dir: /groot-deploy | ||
| volumes: | ||
| - .:/groot-deploy | ||
| ports: | ||
| - "8000:8000" | ||
| - "5000:5000" | ||
| depends_on: | ||
| - db | ||
| - "3306:3306" | ||
| restart: always | ||
|
|
||
| groot-api-gateway: | ||
| build: groot-api-gateway | ||
| ports: | ||
| - "8000:8000" | ||
| volumes: | ||
| - groot_api_gateway_volume:/var/groot-api-gateway/ | ||
|
|
||
| restart: always | ||
|
|
||
| groot-credits-service: | ||
| build: groot-credits-service | ||
| ports: | ||
| - "8765:8765" | ||
| depends_on: | ||
| - db | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| groot-desktop-frontend: | ||
| build: groot-desktop-frontend | ||
| depends_on: | ||
| - groot-api-gateway | ||
| ports: | ||
| - "5000:5000" | ||
| restart: always | ||
|
|
||
| groot-events-service: | ||
| build: groot-events-service | ||
| ports: | ||
| - "8002:8002" | ||
| depends_on: | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| groot-gigs-service: | ||
| build: groot-gigs-service | ||
| ports: | ||
| - "8964:8964" | ||
| depends_on: | ||
| - db | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| groot-groups-service: | ||
| build: groot-groups-service | ||
| ports: | ||
| - "9001:9001" | ||
| depends_on: | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| groot-meme-service: | ||
| build: groot-meme-service | ||
| ports: | ||
| - "42069:42069" | ||
| depends_on: | ||
| - db | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| groot-merch-service: | ||
| build: groot-merch-service | ||
| ports: | ||
| - "6969:6969" | ||
| depends_on: | ||
| - db | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| groot-quotes-service: | ||
| build: groot-quotes-service | ||
| ports: | ||
| - "9494:9494" | ||
| depends_on: | ||
| - db | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| groot-recruiters-service: | ||
| build: groot-recruiters-service | ||
| ports: | ||
| - "3000:3000" | ||
| depends_on: | ||
| - db | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| groot-users-service: | ||
| build: groot-users-service | ||
| ports: | ||
| - "8001:8001" | ||
| depends_on: | ||
| - db | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| groot-voz: | ||
| build: groot-voz | ||
| ports: | ||
| - "5652:5652" | ||
| depends_on: | ||
| - db | ||
| - groot-api-gateway | ||
| restart: always | ||
|
|
||
| volumes: | ||
| db_data: | ||
| groot_api_gateway_volume: |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a separate setup for prod dbs?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're currently running services with the
_devsuffix in prod...I guess it could be worth making the
_devand_proddatabases in this script, though I'm not sure the_proddatabases are enumerated anywhere.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was just following a convention of a
_devsuffix for development environments and just the service name with no suffix for prod (at least for ruby services).