Skip to content
Snippets Groups Projects
docker-compose.yml 796 B
Newer Older
  • Learn to ignore specific revisions
  • version: '3.1'
    
    services:
      service-authentication:
    
        container_name: service-authentication-${NODE_ENV}
    
        build: .
        ports:
    
          - ${SERVICE_PORT}:3000
    
        environment:
          - NODE_ENV=${NODE_ENV}
    
          - POST_LOGOUT_REDIRECT_URI=${DEV_POST_LOGOUT_REDIRECT_URI}
          - REDIRECT_URI=${DEV_REDIRECT_URI}
          - OIDC_CLIENT_ID=${DEV_OIDC_CLIENT_ID}
          - OIDC_CLIENT_SECRET=${DEV_OIDC_CLIENT_SECRET}
          - GLC_CLIENT_ID=${DEV_GLC_CLIENT_ID}
          - GLC_CLIENT_SECRET=${DEV_GLC_CLIENT_SECRET}
    
        depends_on:
          - redis
    
        container_name: redis-${NODE_ENV}
    
        image: redis:5.0.0-alpine
        command: ["redis-server", "--appendonly", "yes"]
        hostname: redis
        ports: 
    
          - ${REDIS_PORT}:6379
    
        volumes:
          - redis-data:/data
    
    volumes:
      redis-data: