Skip to content
Snippets Groups Projects
docker-compose.yml 1.27 KiB
Newer Older
  • Learn to ignore specific revisions
  • version: '3.1'
    
    services:
      service-ram:
        build: .
        image: registry.forge.grandlyon.com/pamn_plateforme-des-acteurs-de-la-mediation-numerique/pamn_server:${TAG}
        ports:
          - ${SERVICE_API_BIND_PORT}:3000
        environment:
          MONGO_NON_ROOT_USERNAME: ${MONGO_NON_ROOT_USERNAME}
          MONGO_NON_ROOT_PASSWORD: ${MONGO_NON_ROOT_PASSWORD}
          MONGO_DB_HOST_AND_PORT: ${MONGO_DB_HOST_AND_PORT}
        restart: unless-stopped
        depends_on:
          - database-ram
    
      database-ram:
        image: bitnami/mongodb:4.2.3
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
        user: root
    
        environment:
          MONGODB_ROOT_PASSWORD: ${MONGO_ROOT_PASSWORD}
          MONGODB_USERNAME: ${MONGO_NON_ROOT_USERNAME}
          MONGODB_PASSWORD: ${MONGO_NON_ROOT_PASSWORD}
          MONGODB_DATABASE: ram
        restart: unless-stopped
        ports:
          - ${MONGO_PORT}:27017
        volumes:
    
    
      mongo-express:
        image: mongo-express
        restart: unless-stopped
        depends_on:
          - database-ram
        ports:
          - ${ME_PORT}:8081
        environment:
          ME_CONFIG_MONGODB_ADMINUSERNAME: root
          ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_ROOT_PASSWORD}
          ME_CONFIG_BASICAUTH_USERNAME: ${ME_CONFIG_BASICAUTH_USERNAME}
          ME_CONFIG_BASICAUTH_PASSWORD: ${ME_CONFIG_BASICAUTH_PASSWORD}
          ME_CONFIG_MONGODB_SERVER: database-ram
    
    volumes: