Skip to content

Commit

Permalink
docker -> front-end devs: b2b-mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
yyluchkiv committed Jun 10, 2024
1 parent 9572fd5 commit 10fe718
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docker/b2b-mongo-server/application-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ tech1:
enabled: true
mongodb-security-jwt-configs:
mongodb:
host: tech1-mongodb
host: t1f-b2b-mongodb
port: 27017
database: tech1_b2b_mongodb_server
31 changes: 21 additions & 10 deletions docker/b2b-mongo-server/docker-compose.docker.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
version: "3.8"

services:
tech1:
t1f-b2b-mongodb-server:
image: ghcr.io/tech1-io/tech1-framework-b2b-mongodb-server:2.8.4
restart: unless-stopped
container_name: tech1-framework-b2b-mongodb-server
container_name: t1f-b2b-mongodb-server
networks:
- tech1-network
- t1f-network
ports:
- "8484:8484"
- "3002:3002"
environment:
- PORT=8484
- PORT=3002
- CONFIG_LOCATIONS=classpath:application.yml,file:/application-docker.yml
- JASYPT_PASSWORD=JJEPTECH1
- JVM_ARGUMENTS=-Xmx5g --add-opens=java.base/java.time=ALL-UNNAMED
volumes:
- ./application-docker.yml:/application-docker.yml
- ./GeoLite2-City.mmdb:/GeoLite2-City.mmdb

t1f-b2b-mongodb:
image: mongo:6.0.15
restart: always
container_name: t1f-b2b-mongodb
ports:
- "27017:27017"
networks:
- t1f-network
volumes:
- t1f-b2b-mongodb-data:/data/db

networks:
tech1-network:
name: tech1-network
t1f-network:
name: t1f-network
driver: bridge

volumes:
t1f-b2b-mongodb-data:
2 changes: 1 addition & 1 deletion docker/b2b-mongo-server/ssh.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

docker exec -it tech1-framework-b2b-postgres-server /bin/sh
docker exec -it t1f-b2b-mongodb-server /bin/sh

0 comments on commit 10fe718

Please sign in to comment.