version: '3' services: auth_web: build: context: . dockerfile: ./apps/web/Dockerfile restart: always networks: - auth_network auth_api: build: context: . dockerfile: ./apps/api/Dockerfile environment: - LDAP_BIND_DN=${LDAP_BIND_DN} - LDAP_BIND_CREDENTIALS=${LDAP_BIND_CREDENTIALS} - LDAP_DOMAIN=${LDAP_DOMAIN} - LDAP_URL=${LDAP_URL} - LDAP_BASE=${LDAP_BASE} - LDAP_ATTRIBUTE=${LDAP_ATTRIBUTE} - API_SECRET=${API_SECRET} - API_TOKEN_TTL=${API_TOKEN_TTL} - API_CACHE_TTL=${API_CACHE_TTL} - REDIS_HOST=redis restart: always networks: - auth_network redis: image: redis:7-alpine environment: ALLOW_EMPTY_PASSWORD: 'yes' networks: - auth_network server: extends: file: docker-compose.traefik.yml service: server image: nginx:alpine volumes: - ./config/nginx.conf:/etc/nginx/templates/default.conf.template restart: always depends_on: - auth_api - redis networks: - auth_network networks: auth_network: external: name: auth_network web: external: true