services: portainer: image: portainer/portainer-ce:latest container_name: portainer restart: always ports: - "9000:9000" - "9443:9443" volumes: - /var/run/docker.sock:/var/run/docker.sock - portainer_data:/data jupyterhub: build: . container_name: jupyterhub restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock - ./jupyterhub_config.py:/srv/jupyterhub/jupyterhub_config.py - ./images.json:/srv/jupyterhub/images.json - jupyterhub_data:/srv/jupyterhub - /data/jupyterhub:/data/jupyterhub ports: - "8000:8000" environment: - THINKSTATION_IP=${THINKSTATION_IP} networks: - lab_network homepage: image: ghcr.io/gethomepage/homepage:latest container_name: homepage restart: always ports: - "80:3000" volumes: - ./homepage_config:/app/config - /var/run/docker.sock:/var/run/docker.sock:ro environment: - HOMEPAGE_VAR_THINKSTATION_IP=${THINKSTATION_IP} - HOMEPAGE_ALLOWED_HOSTS=${THINKSTATION_IP},localhost,127.0.0.1 networks: - lab_network volumes: portainer_data: jupyterhub_data: networks: lab_network: name: lab_network