version: '3.7' services: nginx: build: context: ./docker/nginx dockerfile: Dockerfile depends_on: - app - swagger ports: - ${DOCKER_CAPTCHA_NGINX_PORT}:80 app: depends_on: - redis build: context: ./docker/app dockerfile: Dockerfile target: PRODUCTION # restart: always cap_drop: - ALL cap_add: - SETGID - SETUID - CHOWN - FOWNER ports: - "9000" env_file: .env volumes: - /etc/localtime:/etc/localtime:ro swagger: image: swaggerapi/swagger-ui depends_on: - app environment: URLS: "[ { url: '/swagger.json', name: '/swagger.json' } ]" BASE_URL: /api-docs ports: - "8080" redis: image: redis:3.0-alpine