Skip to content

Commit

Permalink
Merge pull request #2 from TogetherCrew/feature/10-create-a-python-se…
Browse files Browse the repository at this point in the history
…rvice-template-repository

docker-compose
  • Loading branch information
cyri113 authored Jul 19, 2023
2 parents e7dbc8f + 89a17c9 commit c6ccd73
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: "3.9"

services:
redis:
image: "redis:7.0.12-alpine"
ports:
- 6379:6379
mongo:
image: "mongo:6.0.8"
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass
rabbitmq:
image: "rabbitmq:3-management-alpine"
ports:
- 5672:5672
environment:
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=pass
neo4j:
image: "neo4j:5.9.0"
ports:
- 7687:7687
- 7474:7474
environment:
- NEO4J_AUTH=neo4j/password
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*,gds.*
72 changes: 72 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
version: "3.9"

services:
app:
build:
context: .
target: test
dockerfile: Dockerfile
env_file:
- .env
environment:
- PORT=3000
- MONGODB_HOST=mongo
- MONGODB_PORT=27017
- MONGODB_USER=root
- MONGODB_PASS=pass
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=password
- RABBIT_HOST=rabbitmq
- RABBIT_PORT=5672
- RABBIT_USER=root
- RABBIT_PASSWORD=pass
- NEO4J_PROTOCOL=bolt
- NEO4J_HOST=neo4j
- NEO4J_PORT=7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=password
- NEO4J_DB=neo4j
- SAGA_DB_NAME=Saga
- SAGA_DB_COLLECTION=saga
- SENTRY_DSN=sample_dsn
- SENTRY_ENV=local
volumes:
- ./coverage:/project/coverage
networks:
- python_service_network
depends_on:
- redis
- mongo
- neo4j
- rabbitmq
redis:
image: "redis:7.0.12-alpine"
networks:
- python_service_network
mongo:
image: "mongo:6.0.8"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass
networks:
- python_service_network
rabbitmq:
image: "rabbitmq:3-management-alpine"
environment:
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=pass
networks:
- python_service_network
neo4j:
image: "neo4j:5.9.0"
environment:
- NEO4J_AUTH=neo4j/password
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*,gds.*
networks:
- python_service_network

networks:
python_service_network:
driver: bridge

0 comments on commit c6ccd73

Please sign in to comment.