Skip to content

Commit

Permalink
Merge pull request #18 from prrao87/update-ports
Browse files Browse the repository at this point in the history
Forward custom ports for FastAPI
  • Loading branch information
prrao87 authored Apr 20, 2023
2 parents 1ba7c1c + 30a1dce commit 23529c7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions dbs/elasticsearch/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ELASTIC_PORT = 9200
KIBANA_PORT = 5601
ELASTIC_URL = "localhost"
ELASTIC_SERVICE = "elasticsearch"
API_PORT = 8002

# Container image tag
TAG = "0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion dbs/elasticsearch/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
env_file:
- .env
ports:
- 8000:8000
- ${API_PORT}:8000
depends_on:
- elasticsearch
volumes:
Expand Down
1 change: 1 addition & 0 deletions dbs/meilisearch/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ MEILI_VERSION = "v1.1.1"
MEILI_PORT = 7700
MEILI_URL = "localhost"
MEILI_SERVICE = "meilisearch"
API_PORT = 8003

# Container image tag
TAG = "0.1.0"
Expand Down
4 changes: 2 additions & 2 deletions dbs/meilisearch/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ services:
env_file:
- .env
ports:
- 8003:8003
- ${API_PORT}:8000
depends_on:
- meilisearch
volumes:
- ./:/wine
networks:
- wine
command: uvicorn api.main:app --host 0.0.0.0 --port 8003 --reload
command: uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload

volumes:
meili_data:
Expand Down
1 change: 1 addition & 0 deletions dbs/neo4j/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
NEO4J_PASSWORD = ""
NEO4J_VERSION = 5.6.0
DB_SERVICE = "db"
API_PORT = 8001

# Container image tag
TAG = "0.2.0"
Expand Down
2 changes: 1 addition & 1 deletion dbs/neo4j/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
env_file:
- .env
ports:
- 8000:8000
- ${API_PORT}:8000
depends_on:
- db
volumes:
Expand Down

0 comments on commit 23529c7

Please sign in to comment.