generated from CodelyTV/java-basic-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add all servers to docker (#85)
* chore: add all servers to docker * chore: add all servers to docker * chore: wait until elastic is up * ci: add test server to run the tests * ci: use specific docker-compose for ci
- Loading branch information
1 parent
d4f712f
commit c577764
Showing
12 changed files
with
223 additions
and
97 deletions.
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
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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
# MOOC # | ||
#--------------------------------# | ||
MOOC_BACKEND_SERVER_PORT=8081 | ||
MOOC_BACKEND_SERVER_PORT=8030 | ||
# MySql | ||
MOOC_DATABASE_HOST=codelytv-java_ddd_example-mysql | ||
MOOC_DATABASE_HOST=codely-java_ddd_example-mysql | ||
MOOC_DATABASE_PORT=3306 | ||
MOOC_DATABASE_NAME=mooc | ||
MOOC_DATABASE_USER=root | ||
MOOC_DATABASE_PASSWORD= | ||
|
||
# BACKOFFICE # | ||
#--------------------------------# | ||
BACKOFFICE_FRONTEND_SERVER_PORT=8090 | ||
BACKOFFICE_BACKEND_SERVER_PORT=8091 | ||
BACKOFFICE_BACKEND_SERVER_PORT=8040 | ||
BACKOFFICE_FRONTEND_SERVER_PORT=8041 | ||
# MySql | ||
BACKOFFICE_DATABASE_HOST=codelytv-java_ddd_example-mysql | ||
BACKOFFICE_DATABASE_HOST=codely-java_ddd_example-mysql | ||
BACKOFFICE_DATABASE_PORT=3306 | ||
BACKOFFICE_DATABASE_NAME=backoffice | ||
BACKOFFICE_DATABASE_USER=root | ||
BACKOFFICE_DATABASE_PASSWORD= | ||
# Elasticsearch | ||
BACKOFFICE_ELASTICSEARCH_HOST=codelytv-java_ddd_example-elasticsearch | ||
BACKOFFICE_ELASTICSEARCH_HOST=codely-java_ddd_example-elasticsearch | ||
BACKOFFICE_ELASTICSEARCH_PORT=9200 | ||
BACKOFFICE_ELASTICSEARCH_INDEX_PREFIX=backoffice | ||
|
||
# COMMON # | ||
#--------------------------------# | ||
# RabbitMQ | ||
RABBITMQ_HOST=codelytv-java_ddd_example-rabbitmq | ||
RABBITMQ_HOST=codely-java_ddd_example-rabbitmq | ||
RABBITMQ_PORT=5672 | ||
RABBITMQ_LOGIN=codelytv | ||
RABBITMQ_LOGIN=codely | ||
RABBITMQ_PASSWORD=c0d3ly | ||
RABBITMQ_EXCHANGE=domain_events | ||
RABBITMQ_MAX_RETRIES=5 |
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,55 @@ | ||
version: '3' | ||
|
||
services: | ||
shared_mysql: | ||
container_name: codely-java_ddd_example-mysql | ||
image: mysql:8 | ||
platform: linux/amd64 | ||
ports: | ||
- "3306:3306" | ||
environment: | ||
- MYSQL_ROOT_PASSWORD= | ||
- MYSQL_ALLOW_EMPTY_PASSWORD=yes | ||
entrypoint: | ||
sh -c " | ||
echo 'CREATE DATABASE IF NOT EXISTS mooc;CREATE DATABASE IF NOT EXISTS backoffice;' > /docker-entrypoint-initdb.d/init.sql; | ||
/usr/local/bin/docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci | ||
" | ||
command: ["--default-authentication-plugin=mysql_native_password"] | ||
|
||
shared_rabbitmq: | ||
container_name: codely-java_ddd_example-rabbitmq | ||
image: 'rabbitmq:3.7-management' | ||
platform: linux/amd64 | ||
restart: unless-stopped | ||
ports: | ||
- "5630:5672" | ||
- "8090:15672" | ||
environment: | ||
- RABBITMQ_DEFAULT_USER=codely | ||
- RABBITMQ_DEFAULT_PASS=c0d3ly | ||
|
||
backoffice_elasticsearch: | ||
container_name: codely-java_ddd_example-elasticsearch | ||
image: 'elasticsearch:6.8.4' | ||
platform: linux/amd64 | ||
restart: unless-stopped | ||
ports: | ||
- "9300:9300" | ||
- "9200:9200" | ||
environment: | ||
- discovery.type=single-node | ||
|
||
test_server_java: | ||
container_name: codely-java_ddd_example-test_server | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
restart: unless-stopped | ||
volumes: | ||
- .:/app:delegated | ||
depends_on: | ||
- shared_mysql | ||
- shared_rabbitmq | ||
- backoffice_elasticsearch | ||
tty: true |
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
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
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
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
8 changes: 0 additions & 8 deletions
8
...n/tv/codely/mooc/courses_counter/infrastructure/persistence/hibernate/CustomTypes.hbm.xml
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.