version: '3.8' services: redis: image: redis:alpine restart: always volumes: - .:/app/redis app: build: . container_name: app restart: always command: sh ./entrypoint.sh depends_on: - redis volumes: - .:/app expose: - 8000 env_file: - ./.env nginx: build: context: . dockerfile: nginx/Dockerfile container_name: nginx ports: - "80:80" volumes: - .:/app/nginx depends_on: - app