Skip to content

Commit

Permalink
fix: add mongo and mongo express
Browse files Browse the repository at this point in the history
  • Loading branch information
pietro-tota committed Aug 7, 2023
1 parent c7e52ba commit f5845ba
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
36 changes: 30 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.8'

services:
pagopa-ecommerce-helpdesk:
container_name: pagopa-ecommerce-helpdesk
pagopa-ecommerce-helpdesk-service:
container_name: pagopa-ecommerce-helpdesk-service
build:
dockerfile: Dockerfile
context: .
Expand All @@ -11,10 +11,12 @@ services:
ports:
- "8080:8080"
networks:
- pagopa-ecommerce-net
- pagopa-ecommerce-helpdesk-net
oracle:
container_name: oracle
container_name: pagopa-ecommerce-helpdesk-oracle
build: ./docker/oracleDB/liquibase
profiles:
- arm64
image: pagopadcommonacr.azurecr.io/dboracle-ee-12.2.0.1-slim
ports:
- 1521:1521
Expand All @@ -27,10 +29,32 @@ services:
- "spid-testenv2-2:127.0.0.1"
- "pagopa-dev:127.0.0.1"
- "spid-validator:127.0.0.1"
mongo:
container_name: pagopa-ecommerce-helpdesk-mongo
image: mongo
env_file: docker/mongoDB/mongodb.env
ports:
- "27017:27017"
networks:
- pagopa-ecommerce-helpdesk-net
healthcheck:
test: echo "db.stats().ok" | mongo --quiet
interval: 10s

mongo-express:
container_name: pagopa-ecommerce-helpdesk-express
image: mongo-express
env_file: docker/mongoDB/mongo-express.env
ports:
- "8081:8081"
networks:
- pagopa-ecommerce-helpdesk-net
depends_on:
- mongo

networks:
pagopa-ecommerce-net:
name: pagopa-ecommerce-net
pagopa-ecommerce-helpdesk-net:
name: pagopa-ecommerce-helpdesk-net
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1450
Expand Down
3 changes: 3 additions & 0 deletions docker/mongoDB/mongo-express.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MONGO_INITDB_ROOT_USERNAME=admin
MONGO_INITDB_ROOT_PASSWORD=password
ME_CONFIG_MONGODB_URL=mongodb://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@pagopa-ecommerce-mongo:27017/

0 comments on commit f5845ba

Please sign in to comment.