services: dockge: image: louislam/dockge:${VERSION} # latest (stable), beta (unstable) or nightly (you are courageous !) container_name: dockge-${MODE}-${IP}-${PORT} restart: always ports: - ${IP}:${PORT}:5001 volumes: - /var/run/docker.sock:/var/run/docker.sock:${MODE} # Use ro for Controller mode, rw for Agent mode. - ${DATA_DIR}:/app/data - ${STACK_DIR}:${STACK_DIR} environment: # Tell Dockge where to find the stacks - DOCKGE_STACKS_DIR=${STACK_DIR}