# Portainer Community Edition services: portainer: image: portainer/portainer-ce:latest container_name: portainer restart: unless-stopped ports: - "9000:9000" - "9443:9443" volumes: - ./data:/data - /var/run/docker.sock:/var/run/docker.sock environment: - PUID=1000 - PGID=1000 - TZ=Europe/Prague networks: - portainer_net healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9000/api/status"] interval: 30s timeout: 10s retries: 3 start_period: 30s logging: driver: json-file options: max-size: "10m" max-file: "3" networks: portainer_net: name: portainer_default driver: bridge