version: '3.8' services: app: build: context: ./app dockerfile: Dockerfile container_name: influence-app ports: - "3333:3333" env_file: - .env environment: - NODE_ENV=production - REDIS_HOST=redis-changemaker - REDIS_PORT=6379 volumes: - ./app:/usr/src/app - /usr/src/app/node_modules - uploads-data:/usr/src/app/public/uploads - logs-data:/usr/src/app/logs restart: always healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3333/api/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s deploy: resources: limits: cpus: '2' memory: 2G reservations: cpus: '0.5' memory: 512M networks: - changemakerlite_changemaker-lite logging: driver: "json-file" options: max-size: "10m" max-file: "3" volumes: uploads-data: driver: local logs-data: driver: local networks: changemakerlite_changemaker-lite: external: true