version: '3' services: code-server: container_name: code image: lscr.io/linuxserver/code-server:latest environment: - PUID=0 - PGID=0 - TZ=Europe/London - PASSWORD=${CODESERVER_PASSWORD} - DEFAULT_WORKSPACE=/config/workspace volumes: - code-server_config:/config - code-server_root:/root - has_config:/mnt/has_config - nginx_conf:/mnt/nginx_config - mosquitto_config:/mnt/mosquitto_config - hostfs:/mnt/hostfs networks: - code - reverseproxy_public ports: - 8444:8443 restart: unless-stopped volumes: code-server_config: code-server_root: has_config: name: has_app_config external: true hostfs: external: true nginx_conf: name: reverseproxy_nginx-conf.d external: true mosquitto_config: external: true networks: code: reverseproxy_public: external: true