Deployment Cheat Sheet

Platform Compatibility

Build Docker Images on x86 Linux

When developing on Mac ARM (M1/M2/M3), build your Docker images on an x86 machine before cloud deployment to prevent compatibility issues.

Resources:

Performance Optimization

Limit Docker Log Size

Configure logging options for all services to prevent excessive disk usage:

x-common: &common-config
  restart: always
  logging:
    driver: "json-file"
    options:
      max-size: "100m"
      max-file: "5"

services:
  example:
    <<: *common-config
    image: example:0.1.0
    container_name: example
    ports:
      - "8000:8000"

Last updated

Was this helpful?